Template:Main: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks
No edit summary
defaultloadout-wikigg>Karmaworks
No edit summary
Line 1: Line 1:
Main article: Article § Section title
<includeonly><!--
-->{{#vardefine:text|<!-- start vd
     
  -->{{#if:{{{2|}}}<!-- if more than one page
     
      -->|[[{{{1}}}]]{{#if:{{{3|}}}<!-- start concat if
       
        -->|, [[{{{2}}}]] and [[{{{3}}}]]<!-- concat two
           
        -->|<nowiki> </nowiki>and [[{{{2}}}]]<!-- else; concat one
           
      -->}}<!-- end concat if
       
      -->|[[{{{1}}}]]<!-- else; one page only
       
  -->}}<!-- end if
     
-->}}<!-- end vd


Main article: Custom section label
-->{{Hatnote|<!--


Main articles: Article1, Article2, and Article3
  -->{{#if:{{{2|}}}|Main Articles|Main Article}}: {{#var:text}}.<!--
 
-->}}<!--
 
--></includeonly><!--
 
--><noinclude>{{doc}}</noinclude>

Revision as of 20:58, 12 April 2024

Template documentation
view or edit this documentation about template documentation

Examples

Code Result
{{Main|Special:WantedPages}}
Main Article: Special:WantedPages.
{{Main|Special:WantedPages#Section Title}}
Main Article: Special:WantedPages.
{{Main|Special:WantedPages|Special:UncategorizedPages}}
{{Main|Special:WantedPages|Special:UncategorizedPages|Special:UncategorizedCategories}}
{{Main|Special:WantedPages{{!}}Page 1}} (Custom link label)
Main Article: Page 1.