Difference between revisions of "Help:Templates"

From WikiCorporates
Jump to navigation Jump to search
m
m (→‎Notes)
Line 11: Line 11:
  
 
== Notes ==
 
== Notes ==
−
* To specify the Template Category, underneath the code write: <pre><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude></pre>
+
* To specify the Template Category, underneath the code write: <pre><noinclude>[[Category:WikiPolitiks templates]]</noinclude></pre>
  
 
* Template:Main on W'pedia is written as a Module: [https://en.wikipedia.org/w/index.php?title=Module:Main&action=edit Wikipedia:Module Main]
 
* Template:Main on W'pedia is written as a Module: [https://en.wikipedia.org/w/index.php?title=Module:Main&action=edit Wikipedia:Module Main]

Revision as of 04:52, 10 March 2018

Simple Template with one Parameter

Template Code: <span>''See main article: [[{{{1}}}]]''</span>
To Call: {{SeeMain|Article Name}}

Solution found here: MediaWiki: Optional Fields, MediaWiki: Missing Parameter

Simple Template with two Parameters; 2nd one is optional

Template Code: <span>''{{#if:{{{2|}}} | See main articles: [[{{{1}}}]], [[{{{2}}}]] | See main article: [[{{{1}}}]] }}''</span>
To Call: {{SeeMain|Article Name 1|Article Name 2}}

Notes

  • To specify the Template Category, underneath the code write:
    <noinclude>[[Category:WikiPolitiks templates]]</noinclude>