Difference between revisions of "Template:WpPage"

From Wikispooks
Jump to navigation Jump to search
m (Test)
Line 38: Line 38:
 
|style="border: 1px solid #aaaaaa; padding: 0.4em; "| [[Image:WpIcon32.png|28px |link={{{WpURL|}}}]] '''{{#if: {{{WpURL|}}}| [{{{WpURL|}}} <font color="black">{{PAGENAME}}]</font> |<font color="red">Error. Missing <font face="courier">WpURL</font> parameter!</font> }}'''
 
|style="border: 1px solid #aaaaaa; padding: 0.4em; "| [[Image:WpIcon32.png|28px |link={{{WpURL|}}}]] '''{{#if: {{{WpURL|}}}| [{{{WpURL|}}} <font color="black">{{PAGENAME}}]</font> |<font color="red">Error. Missing <font face="courier">WpURL</font> parameter!</font> }}'''
 
|}<br/><br/><br/>
 
|}<br/><br/><br/>
 
TEST:{{WPProblems|details=fish{{#ifeq: {{{WPUnclear|}}}|Yes|{{!}}unclear|}}}}
 
 
 
<!-- We face issues with escaping '|' characters :!... -->
 
<!-- We face issues with escaping '|' characters :!... -->
{{WPProblems|details={{{WpIntro|}}}|{{#ifeq: {{{WPBias|}}}|Yes|{{!}}bias|}} {{#ifeq: {{{WPCensored|}}}|Yes|{{!}}censored|}} {{#ifeq: {{{WPGaps|}}}|Yes|{{!}}gaps|}} {{#ifeq: {{{WPUnclear|}}}|Yes|{{!}}Unclear|}} {{#ifeq: {{{WPTwisted|}}}|Yes|{{!}}twisted|}} {{#ifeq: {{{WPNewsprint|}}}|Yes|{{!}}newsprint|}} }}
+
{{WPProblems|details={{{WpIntro|}}}|{{#ifeq: {{{WPBias|}}}|Yes|{{!}}bias|}} {{#ifeq: {{{WPCensored|}}}|Yes|{{!}}censored|}} {{#ifeq: {{{WPGaps|}}}|Yes|{{!}}gaps|}} {{#ifeq: {{{WPUnclear|}}}|Yes|{{!}}unclear|}} {{#ifeq: {{{WPTwisted|}}}|Yes|{{!}}twisted|}} {{#ifeq: {{{WPNewsprint|}}}|Yes|{{!}}newsprint|}} }}
 
{{#ifeq: {{{Stub|}}}|Yes|{{WpStub}}<br/>|}}
 
{{#ifeq: {{{Stub|}}}|Yes|{{WpStub}}<br/>|}}
 
<hr/>
 
<hr/>

Revision as of 11:38, 14 June 2012

This is the "WpPage" template. It is for use on pages which report Wikipedia pages with the same name and requires the Wikipedia PageName and URL. All such pages are in the 'Wikipedia' namespace and belong to the category 'WpPages'. It should be called in the following format:

{{WpPage
|WpPageName=
|WpURL= Wikipedia URL (Required)
|WpIntro=Quick description of Wikipedia's main problems (Strongly Recommended)
|WPBias= Whether the WP article is ''biased''.
|WPCensored=...
|WPGaps= 
|WPNewsprint= 
|WPTwisted= 
|WPUnclear=
|WsLink0= The Main WS Page (Recommended)
|Stub=Yes (Optional stub marker)
|WsLink1=
|WsLink1Desc=
|WsLink2=
|WsLink2Desc=
...
|WsLink9=
|WsLink9Desc=
|ExLink1=
|ExLink1Name=
|ExLink1Desc=
|ExLink2=
|ExLink2Name=
|ExLink2Desc=
...
|ExLink9=
|ExLink9Name=
|ExLink9Desc=
}}

Edit the page to see the template text.