Difference between revisions of "Template:For2/doc"

From Dolphin Emulator Wiki
Jump to: navigation, search
(Import from Wikipedia (using Special:ExpandTemplates))
 
(Too much expansion, also I guess the level 2 header causes issues?)
 
Line 1: Line 1:
== Usage ==
 
 
Modelled after {{[[wikipedia:Template:For|For]]}}, '''{{[[wikipedia:Template:For2|For2]]}}''' was created to allow custom text, including such modifications as quotation marks or a link, as part of both a topic and its suggested article.
 
Modelled after {{[[wikipedia:Template:For|For]]}}, '''{{[[wikipedia:Template:For2|For2]]}}''' was created to allow custom text, including such modifications as quotation marks or a link, as part of both a topic and its suggested article.
  
Line 5: Line 4:
  
 
===With one topic===
 
===With one topic===
* <code><nowiki>{{</nowiki>[[Template:For2|For2]]&#124;TOPIC&#124;CUSTOM TEXT<nowiki>}}</nowiki></code> → <div role="note" class="hatnote navigation-not-searchable">For TOPIC, see CUSTOM TEXT.</div>
+
* <code><nowiki>{{</nowiki>[[Template:For2|For2]]&#124;TOPIC&#124;CUSTOM TEXT<nowiki>}}</nowiki></code> → {{For2|TOPIC|CUSTOM TEXT}}
  
 
===With more than one topic===
 
===With more than one topic===
 
This template also supports up to five topics and their suggested articles:
 
This template also supports up to five topics and their suggested articles:
* <code><nowiki>{{</nowiki>[[Template:For2|For2]]&#124;TOPIC&#124;CUSTOM TEXT&#124;TOPIC 2&#124;CUSTOM TEXT 2<nowiki>}}</nowiki></code> → <div role="note" class="hatnote navigation-not-searchable">For TOPIC, see CUSTOM TEXT.  For TOPIC 2, see CUSTOM TEXT 2.</div>
+
* <code><nowiki>{{</nowiki>[[Template:For2|For2]]&#124;TOPIC&#124;CUSTOM TEXT&#124;TOPIC 2&#124;CUSTOM TEXT 2<nowiki>}}</nowiki></code> → {{For2|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2}}
* <code><nowiki>{{</nowiki>[[Template:For2|For2]]&#124;TOPIC&#124;CUSTOM TEXT&#124;TOPIC 2&#124;CUSTOM TEXT 2&#124;TOPIC 3&#124;CUSTOM TEXT 3&#124;TOPIC 4&#124;CUSTOM TEXT 4&#124;TOPIC 5&#124;CUSTOM TEXT 5<nowiki>}}</nowiki></code> → <div role="note" class="hatnote navigation-not-searchable">For TOPIC, see CUSTOM TEXT.  For TOPIC 2, see CUSTOM TEXT 2.  For TOPIC 3, see CUSTOM TEXT 3.&nbsp;For TOPIC 4, see CUSTOM TEXT 4.&nbsp;For TOPIC 5, see CUSTOM TEXT 5.</div>
+
* <code><nowiki>{{</nowiki>[[Template:For2|For2]]&#124;TOPIC&#124;CUSTOM TEXT&#124;TOPIC 2&#124;CUSTOM TEXT 2&#124;TOPIC 3&#124;CUSTOM TEXT 3&#124;TOPIC 4&#124;CUSTOM TEXT 4&#124;TOPIC 5&#124;CUSTOM TEXT 5<nowiki>}}</nowiki></code> → {{For2|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2|TOPIC 3|CUSTOM TEXT 3|TOPIC 4|CUSTOM TEXT 4|TOPIC 5|CUSTOM TEXT 5}}
  
 
===Wikilinks and capitalization===
 
===Wikilinks and capitalization===
 
'''Style note:''' When the context around a wikilink discusses the destination article itself (e.g., For more information, see ''Xyz''; Main article: ''Xyz''; This is discussed in ''Xyz'') rather than the topic of that article (e.g., Tailors often use ''xyz'' on their clients' pants), use the capitalization of the article's title in the wikilinked text: <nowiki>[[Xyz]]</nowiki>. The same applies to subheadings: <nowiki>[[Xyz#PDQ|Xyz § PDQ]]</nowiki>.
 
'''Style note:''' When the context around a wikilink discusses the destination article itself (e.g., For more information, see ''Xyz''; Main article: ''Xyz''; This is discussed in ''Xyz'') rather than the topic of that article (e.g., Tailors often use ''xyz'' on their clients' pants), use the capitalization of the article's title in the wikilinked text: <nowiki>[[Xyz]]</nowiki>. The same applies to subheadings: <nowiki>[[Xyz#PDQ|Xyz § PDQ]]</nowiki>.

Latest revision as of 19:35, 31 March 2020

Modelled after {{For}}, {{For2}} was created to allow custom text, including such modifications as quotation marks or a link, as part of both a topic and its suggested article.

Note: you must supply any formatting manually (=unlike {{For}}, parameters aren't automatically bluelinked)

With one topic

  • {{For2|TOPIC|CUSTOM TEXT}}
For TOPIC, see CUSTOM TEXT.

With more than one topic

This template also supports up to five topics and their suggested articles:

  • {{For2|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2}}
For TOPIC, see CUSTOM TEXT. For TOPIC 2, see CUSTOM TEXT 2.
  • {{For2|TOPIC|CUSTOM TEXT|TOPIC 2|CUSTOM TEXT 2|TOPIC 3|CUSTOM TEXT 3|TOPIC 4|CUSTOM TEXT 4|TOPIC 5|CUSTOM TEXT 5}}
For TOPIC, see CUSTOM TEXT. For TOPIC 2, see CUSTOM TEXT 2. For TOPIC 3, see CUSTOM TEXT 3. For TOPIC 4, see CUSTOM TEXT 4. For TOPIC 5, see CUSTOM TEXT 5.

Wikilinks and capitalization

Style note: When the context around a wikilink discusses the destination article itself (e.g., For more information, see Xyz; Main article: Xyz; This is discussed in Xyz) rather than the topic of that article (e.g., Tailors often use xyz on their clients' pants), use the capitalization of the article's title in the wikilinked text: [[Xyz]]. The same applies to subheadings: [[Xyz#PDQ|Xyz § PDQ]].