Difference between revisions of "Help:Templates"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "== Simple Template with one Parameter == <pre>Template Code: <span>''See main article: [[{{{1}}}]]''</span></pre> <pre>To Call: {{SeeMain|Article Name}}</pre> Solution found h...")
 
Line 16: Line 16:
  
 
* Good eg. of a Template for Contact-Info table:
 
* Good eg. of a Template for Contact-Info table:
−
**[https://www.packtpub.com/books/content/mediawiki-content-organizing-features-templates-sections-redirection]
+
** https://www.packtpub.com/books/content/mediawiki-content-organizing-features-templates-sections-redirection
  
 
* Useful Info:
 
* Useful Info:
−
** [http://community.wikia.com/wiki/Help:Template_parameters]
+
** http://community.wikia.com/wiki/Help:Template_parameters
  
 
[Category:Help]
 
[Category:Help]

Revision as of 15:04, 1 January 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:Templates|{{PAGENAME}}]]</noinclude>

[Category:Help]