Difference between revisions of "Template:WpPage"

From Wikispooks
Jump to navigation Jump to search
(Move intro text down)
(Move intro text down)
Line 26: Line 26:
 
</pre>
 
</pre>
 
Edit the page to see the template text.</noinclude><includeonly>
 
Edit the page to see the template text.</noinclude><includeonly>
{| style="text-align:center; font-size: 166%; color: black; margin-bottom: 0em;  margin-right: 0.66em; "
+
{| style="text-align:center; font-size: 166%; color: black; margin-bottom: 0em;  margin-right: 0.66em; float:left;"
 
|-
 
|-
 
| {{#if: {{{WsLink0|}}} |style="background-color: #DFDFFF; border: 1px solid #aaaaaa; padding: 0.4em; "|}} | {{#if: {{{WsLink0|}}} | [[Image:WsIcon32.png|28px |link={{{WsLink0}}} |alt={{{WsLink0}}}]] '''[[{{{WsLink0}}}]]'''|}}
 
| {{#if: {{{WsLink0|}}} |style="background-color: #DFDFFF; border: 1px solid #aaaaaa; padding: 0.4em; "|}} | {{#if: {{{WsLink0|}}} | [[Image:WsIcon32.png|28px |link={{{WsLink0}}} |alt={{{WsLink0}}}]] '''[[{{{WsLink0}}}]]'''|}}
 
|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> }}'''
 +
|-
 +
| {{{WpIntro|}}}
 
|}{{WpBadge}}<br/>
 
|}{{WpBadge}}<br/>
{{#if: {{{WpIntro|}}} | {{{WpIntro}}} |}}
 
 
<br/><hr/>
 
<br/><hr/>
 
{{#if: {{{WsLink1|}}} |[[Image:WsIcon32.png|16px |link={{{WsLink1}}} |alt={{{WsLink1}}}]] <b>[[WpNsRelatedPage::{{{WsLink1}}}]]</b> {{{WsLink1Desc|}}}<br/>|}}
 
{{#if: {{{WsLink1|}}} |[[Image:WsIcon32.png|16px |link={{{WsLink1}}} |alt={{{WsLink1}}}]] <b>[[WpNsRelatedPage::{{{WsLink1}}}]]</b> {{{WsLink1Desc|}}}<br/>|}}

Revision as of 16:40, 30 August 2011

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=
|WsLink0= The Main WS Page (Recommended)
|Stub=1 (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.