Difference between revisions of "Template:WPProblems"

From Wikispooks
Jump to navigation Jump to search
(Fix nocat)
(test nocat)
Line 1: Line 1:
 
<includeonly><center>
 
<includeonly><center>
 
{|style="align:center; color:navy; background-color:#dddddd;" cellpadding="1" class="wikitable"
 
{|style="align:center; color:navy; background-color:#dddddd;" cellpadding="1" class="wikitable"
|{{nowrap begin}}{{#ifeq: {{{bias|}}}|Yes|{{WPIcon|bias}}|}}{{#ifeq: {{{censored|}}}|Yes|{{WPIcon|censored}}|}}{{#ifeq: {{{gaps|}}}|Yes|{{WPIcon|gaps}}|}}{{#ifeq: {{{newsprint|}}}|Yes|{{WPIcon|newsprint}}|}}{{#ifeq: {{{twisted|}}}|Yes|{{WPIcon|twisted}}|}}{{#ifeq: {{{unclear|}}}|Yes|{{WPIcon|unclear}}|}}{{nowrap end}}
+
|{{nowrap begin}}{{#ifeq: {{{bias|}}}|Yes|{{WPIcon|bias|{{{nocat|}}}}}|}}{{#ifeq: {{{censored|}}}|Yes|{{WPIcon|censored}}|}}{{#ifeq: {{{gaps|}}}|Yes|{{WPIcon|gaps}}|}}{{#ifeq: {{{newsprint|}}}|Yes|{{WPIcon|newsprint}}|}}{{#ifeq: {{{twisted|}}}|Yes|{{WPIcon|twisted|{{{nocat|}}}}}|}}{{#ifeq: {{{unclear|}}}|Yes|{{WPIcon|unclear}}|}}{{nowrap end}}
 
|{{{details|}}}
 
|{{{details|}}}
 
|}
 
|}
Line 9: Line 9:
 
{|style="width:90%;" cellpadding="1" class="wikitable"
 
{|style="width:90%;" cellpadding="1" class="wikitable"
 
|<font face="courier"><nowiki>|bias=Yes</nowiki></font>
 
|<font face="courier"><nowiki>|bias=Yes</nowiki></font>
|{{WPIcon|bias|nocat}}
+
|{{WPIcon|bias}}
 
| &nbsp;
 
| &nbsp;
 
|<font face="courier"><nowiki>|censored=Yes</nowiki></font>
 
|<font face="courier"><nowiki>|censored=Yes</nowiki></font>
|{{WPIcon|censored|nocat}}
+
|{{WPIcon|censored}}
 
| &nbsp;
 
| &nbsp;
 
|<font face="courier"><nowiki>|gaps=Yes</nowiki></font>
 
|<font face="courier"><nowiki>|gaps=Yes</nowiki></font>
|{{WPIcon|gaps|nocat}}
+
|{{WPIcon|gaps}}
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
 
<!--|<font face="courier"><nowiki>|newsprint=Yes</nowiki></font>
 
<!--|<font face="courier"><nowiki>|newsprint=Yes</nowiki></font>
|{{WPIcon|newsprint|nocat}}
+
|{{WPIcon|newsprint}}
 
| &nbsp;-->
 
| &nbsp;-->
 
|<font face="courier"><nowiki>|twisted=Yes</nowiki></font>
 
|<font face="courier"><nowiki>|twisted=Yes</nowiki></font>
|{{WPIcon|twisted|nocat}}
+
|{{WPIcon|twisted}}
 
| &nbsp;
 
| &nbsp;
 
|<font face="courier"><nowiki>|unclear=Yes</nowiki></font>
 
|<font face="courier"><nowiki>|unclear=Yes</nowiki></font>
|{{WPIcon|unclear|nocat}}
+
|{{WPIcon|unclear}}
 
|-
 
|-
 
|}
 
|}
Line 31: Line 31:
 
None of these problems creates any text, so using <font face="courier">|details=</font> to customise the text is recommended. For example:
 
None of these problems creates any text, so using <font face="courier">|details=</font> to customise the text is recommended. For example:
 
{|style="width:90%;" cellpadding="1" class="wikitable"
 
{|style="width:90%;" cellpadding="1" class="wikitable"
|<font face="courier"><nowiki>{{WPProblems|bias=Yes|unclear=Yes|details=The multiple Wikipedia pages on "assassinations" are wordy treatments showing great selectivity and bias.}}</nowiki></font>
+
|<font face="courier"><nowiki>{{WPProblems|bias=Yes|unclear=Yes|details=The multiple Wikipedia pages on "assassinations" are wordy treatments showing great selectivity and bias.|nocat=nocat}}</nowiki></font>
 
|{{WPProblems|bias=Yes|unclear=Yes|details=The multiple Wikipedia pages on "assassinations" are wordy treatments showing great selectivity and bias.}}
 
|{{WPProblems|bias=Yes|unclear=Yes|details=The multiple Wikipedia pages on "assassinations" are wordy treatments showing great selectivity and bias.}}
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 12:13, 8 July 2012

This template is for wikipedia: pages, for normal Wikispooks pages use template:WPAdjunct or template:WPMissing.
This template makes a short set of icons which explain the main problems with the corresponding wikipedia page. Unlike the other WP templates, it is possible to flag multiple problems. Use the following parameters:

|bias=Yes bias    |censored=Yes censored    |gaps=Yes gaps   
|twisted=Yes twisted    |unclear=Yes unclear 

None of these problems creates any text, so using |details= to customise the text is recommended. For example:

{{WPProblems|bias=Yes|unclear=Yes|details=The multiple Wikipedia pages on "assassinations" are wordy treatments showing great selectivity and bias.|nocat=nocat}}
bias unclear  The multiple Wikipedia pages on "assassinations" are wordy treatments showing great selectivity and bias.