Template:PRel: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
(added item support)
Line 1: Line 1:
<includeonly>[[post relates to::{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}]]|{{#if:{{{2}}}|]]|{{!}} ]]}}}}</includeonly><noinclude>
<includeonly>[[post relates to::{{#if:{{{t|}}}|{{#switch:{{{t}}}|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{ucfirst:{{lc:{{{1}}}}}}}|{{{1}}}]]|{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}]]|{{#if:{{{2}}}|]]|{{!}} ]]}}}}}}</includeonly><noinclude>
==Usage Documentation==
==Usage Documentation==
A short-hand for linking posts to their related subjects.
A short-hand for linking posts to their related subjects.


If "t" is declared using the same syntax as [[Template:Ilink]], it will treat it as an item of the appropriate type.
<pre>
<pre>
{{PRel|<page>|<name (optional)>}}
{{PRel|<page>|<name (optional)>|t=<type>(optional)}}
</pre>
</pre>
{{cat|templates}}<noinclude>
{{cat|templates}}<noinclude>

Revision as of 20:46, 27 March 2012

Usage Documentation

A short-hand for linking posts to their related subjects.

If "t" is declared using the same syntax as Template:Ilink, it will treat it as an item of the appropriate type.

{{PRel|<page>|<name (optional)>|t=<type>(optional)}}