Difference between revisions of "Template:Pl/Doc"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
m (1 revision imported: templates from UESPWiki)
m (clean out MetaTemplate)
 
Line 1: Line 1:
<includeonly>{{TemProtect}}</includeonly>
 
 
== Summary ==
 
== Summary ==
 
This template is used to create an external link without the http://skins.uesp.net/monobook/external-ltr.png icon displayed in most skins.
 
This template is used to create an external link without the http://skins.uesp.net/monobook/external-ltr.png icon displayed in most skins.
  
 
== Parameters ==
 
== Parameters ==
{{Parameters
+
{| class="wikitable"
|1|required|The name of the local or interwiki page.
+
!colspan="3"| {{{template|{{BASEPAGENAME}}}}}
|2|optional|A name to use for the link.
+
|-
|3|optional|A query string such as <code>action{{=}}edit</code>. Remember to escape equals signs or use <code>3{{=}}action{{=}}edit</code>.
+
! Parameter !! Scope !! Description
|action<br>curid<br>diff<br>group<br>oldid|optional|These pseudo-parameters are for ease-of-use, allowing the <code>3{{=}}</code> in the above parameter to be omitted.
+
|-
|style|optiona|A CSS style string to be applied to the link.
+
|1||required||The name of the local or interwiki page.
}}
+
|-
 +
|2||optional||A name to use for the link.
 +
|-
 +
|3||optional||A query string such as <code>action{{=}}edit</code>. Remember to escape equals signs or use <code>3{{=}}action{{=}}edit</code>.
 +
|-
 +
|style||optional||A CSS style string to be applied to the link.
 +
|}
  
 
== Examples ==
 
== Examples ==
Line 17: Line 22:
 
|-
 
|-
 
|External link to local page
 
|External link to local page
|{{tlx|Pl|Category:Templates}}
+
|<code><nowiki>{{Pl|Category:Templates}}</nowiki></code>
 
|{{Pl|Category:Templates}}
 
|{{Pl|Category:Templates}}
 
|-
 
|-
 
|Interwiki link with name with CSS coloring
 
|Interwiki link with name with CSS coloring
|{{tlx|Pl|Wikipedia:Wikipedia:Main Page|Wikipedia Main Page|style=color:green}}
+
|<code><nowiki>{{Pl|Wikipedia:Wikipedia:Main Page|Wikipedia Main Page|style=color:green}}</nowiki></code>
 
|{{Pl|Wikipedia:Wikipedia:Main Page|Wikipedia Main Page|style=color:green}}
 
|{{Pl|Wikipedia:Wikipedia:Main Page|Wikipedia Main Page|style=color:green}}
 
|-
 
|-
 
|Action query (with escaped = in third parameter)
 
|Action query (with escaped = in third parameter)
|{{tlx|Pl|UESPWiki:Community Portal|Edit Community Portal|action<nowiki>{{=}}</nowiki>edit}}
+
|<code><nowiki>{{Pl|UESPWiki:Community Portal|Edit Community Portal|action{{=}}edit}}</nowiki></code>
 
|{{Pl|UESPWiki:Community Portal|Edit Community Portal|action{{=}}edit}}
 
|{{Pl|UESPWiki:Community Portal|Edit Community Portal|action{{=}}edit}}
 
|-
 
|-
 
|Diff (long-hand)
 
|Diff (long-hand)
|{{tlx|Pl|Main Page|Last edit to Main Page|<nowiki>3=diff=0&oldid=prev</nowiki>}}
+
||<code><nowiki>{{Pl|Main Page|Last edit to Main Page|3=diff=0&oldid=prev}}</nowiki></code>
 
|{{Pl|Main Page|Last edit to Main Page|3=diff=0&oldid=prev}}
 
|{{Pl|Main Page|Last edit to Main Page|3=diff=0&oldid=prev}}
|-
 
|Diff (short-hand)
 
|{{tlx|Pl|Main Page|Last edit to Main Page|<nowiki>diff=0&oldid=prev</nowiki>}}
 
|{{Pl|Main Page|Last edit to Main Page|diff=0&oldid=prev}}
 
 
|-
 
|-
 
|What Links Here?
 
|What Links Here?
|{{tlx|Pl|Special:WhatLinksHere|3=''Pages that link to Lore:Thaumaturgy''|4=3=target=''Lore:Thaumaturgy''&namespace=}}
+
||<code><nowiki>{{Pl|Special:WhatLinksHere|3=''Pages that link to Lore:Thaumaturgy''|4=3=target=''Lore:Thaumaturgy''&namespace=}}</nowiki></code>
 
|{{Pl|Special:WhatLinksHere|Pages that link to Lore:Thaumaturgy|3=target=Lore:Thaumaturgy&namespace=}}
 
|{{Pl|Special:WhatLinksHere|Pages that link to Lore:Thaumaturgy|3=target=Lore:Thaumaturgy&namespace=}}
 
|}<includeonly>[[Category:External Link Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>
 
|}<includeonly>[[Category:External Link Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 14:44, 29 June 2017

Summary[edit]

This template is used to create an external link without the http://skins.uesp.net/monobook/external-ltr.png icon displayed in most skins.

Parameters[edit]

Pl
Parameter Scope Description
1 required The name of the local or interwiki page.
2 optional A name to use for the link.
3 optional A query string such as action=edit. Remember to escape equals signs or use 3=action=edit.
style optional A CSS style string to be applied to the link.

Examples[edit]

Link Type Example Results
External link to local page {{Pl|Category:Templates}} [1]
Interwiki link with name with CSS coloring {{Pl|Wikipedia:Wikipedia:Main Page|Wikipedia Main Page|style=color:green}} Wikipedia Main Page
Action query (with escaped = in third parameter) {{Pl|UESPWiki:Community Portal|Edit Community Portal|action{{=}}edit}} Edit Community Portal
Diff (long-hand) {{Pl|Main Page|Last edit to Main Page|3=diff=0&oldid=prev}} Last edit to Main Page
What Links Here? {{Pl|Special:WhatLinksHere|3=''Pages that link to Lore:Thaumaturgy''|4=3=target=''Lore:Thaumaturgy''&namespace=}} Pages that link to Lore:Thaumaturgy