Template:Sectionstub: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(start and hope it doesn't get shot down)
 
mNo edit summary
 
Line 1: Line 1:
;Description
For use in stubbing sections. Alternately use <code>{{t|Sectionstub/Generic}}</code> (which just redirects here). See {{t|i-note}}.
:For use in stubbing sections. Alternately use <code>{{t|Sectionstub/Generic}}</code> (which just redirects here).
 
;Dependencies
* {{t|i-note}}
* [[:File:Sprite-monaco-pencil.png]]
 
;Known issues
* Using an wiki-indent (<code>:</code>) before this template is known to cause problems (almost certainly related to use of {{t|i-note}}) and makes the wiki-engine generate spurious <code>&lt;/div&gt;</code> tags for some reason that completely mess up the layout of pages.


;Usage
;Usage
:<code>&#123;&#123;Sectionstub|type=''section_stub_type''|doc=''optional_to_omit_categorization''&#125;&#125;</code>
* 1 = Tooltip text over "help expand it" link (don't use wikitext or HTML). Optional.
 
* type = See below. Type is not strictly enforced.
;Parameters
** Accuracy - This refers to any section in which the accuracy of its contents is questionable
* <code>1</code> = ''Optional'' Tooltip text over "help expand it" link (don't use wikitext or HTML).
** Elink - Sections dealing with external links.
* <code>type</code> = ''See below.'' Type is not strictly enforced.
** Lore - Sections dealing with official World of Warcraft lore.
** <code>Accuracy</code> - This refers to any section in which the accuracy of its contents is questionable
** Notes - Notes section stub. Usually implies expected additional info.
** <code>Elink</code> - Sections dealing with external links.
** Quest - Sections about specific quests or quest related info.  
** <code>Lore</code> - Sections dealing with official World of Warcraft lore.
** See also - A "See also" section stub for links to other related.
** <code>Notes</code> - Notes section stub. Usually implies expected additional info.
** Source - A source section stub for items mostly.
** <code>Quest</code> - Sections about specific quests or quest related info.  
** Strategy - A strategy or tactics section stub for mobs, like instance bosses.
** <code>See also</code> - A "See also" section stub for links to other related.
** Other - Anything that doesn't fit in the above categories.  
** <code>Source</code> - A source section stub for items mostly.
* textcolor = Text color (also changes line color). Optional.
** <code>Strategy</code> - A strategy or tactics section stub for mobs, like instance bosses.
** <code>Other</code> - Anything that doesn't fit in the above categories.  
* <code>textcolor</code> = ''Optional'' Text color (also changes line color).


;Examples
;Examples
Line 37: Line 26:
{{Sectionstub|textcolor=gray}}
{{Sectionstub|textcolor=gray}}
{{Sectionstub|Alternate tooltip text.}}
{{Sectionstub|Alternate tooltip text.}}
;See also
* Version with less dependencies on Templates wiki should be copied here eventually: [[w:c:templates:{{FULLPAGENAME}}|{{FULLPAGENAME}}]]


----
----
;Template
;Template
<onlyinclude><div class="hide">{{i-note|msg=This is {{#switch:{{#sub:{{lc:{{{type|}}}}}|0|1}}|a|e|i|o|u=an|#default=a}} '''{{{type|generic}}}''' ''section''&nbsp;'''stub'''. You can [[WoWWiki:Find or fix a stub|<span title="{{{1|Find or fix a stub.}}}">help expand it</span>]] by clicking [[File:Sprite-monaco-pencil.png|link=]]&nbsp;<u>Edit</u> to the right of the section title.|icon=Icon-edit-22x22.png|textcolor={{{textcolor|}}}}}</div></onlyinclude><includeonly>{{#if:{{{doc|}}}|&nbsp;|{{#if:{{{type|}}}|[[Category:{{ucfirst:{{{type|}}}}} section stubs|{{PAGENAME}}]]|[[Category:Section stubs|{{PAGENAME}}]]}}}}</includeonly>
<onlyinclude><div class="hide">{{i-note|msg=This is {{#switch:{{#sub:{{lc:{{{type|}}}}}|0|1}}|a|e|i|o|u=an|#default=a}} '''{{{type|generic}}}''' ''section''&nbsp;'''stub'''. You can <span title="{{{1|Find or fix a stub.}}}">help expand it</span> by clicking [[File:Sprite-monaco-pencil.png|link=]]&nbsp;<u>Edit</u> on the section title.|icon=Icon-edit-22x22.png|textcolor={{{textcolor|}}}}}</div></onlyinclude><includeonly>{{#if:{{{doc|}}}|&nbsp;|{{#if:{{{type|}}}|[[Category:{{ucfirst:{{{type|}}}}} section stubs|{{PAGENAME}}]]|[[Category:Section stubs|{{PAGENAME}}]]}}}}</includeonly>
[[Category:Inline templates|Sectionstub, Generic]]
[[Category:Inline templates|Sectionstub, Generic]]

Latest revision as of 01:02, 21 May 2020

For use in stubbing sections. Alternately use {{Sectionstub/Generic}} (which just redirects here). See {{i-note}}.

Usage
  • 1 = Tooltip text over "help expand it" link (don't use wikitext or HTML). Optional.
  • type = See below. Type is not strictly enforced.
    • Accuracy - This refers to any section in which the accuracy of its contents is questionable
    • Elink - Sections dealing with external links.
    • Lore - Sections dealing with official World of Warcraft lore.
    • Notes - Notes section stub. Usually implies expected additional info.
    • Quest - Sections about specific quests or quest related info.
    • See also - A "See also" section stub for links to other related.
    • Source - A source section stub for items mostly.
    • Strategy - A strategy or tactics section stub for mobs, like instance bosses.
    • Other - Anything that doesn't fit in the above categories.
  • textcolor = Text color (also changes line color). Optional.
Examples
{{Sectionstub}}
{{Sectionstub|type=Accuracy}}
{{Sectionstub|textcolor=gray}}
{{Sectionstub|Alternate tooltip text.}}
Output
Icon-edit-22x22.png
Note: This is a generic section stub. You can help expand it by clicking Sprite-monaco-pencil.png Edit on the section title.
Icon-edit-22x22.png
Note: This is an Accuracy section stub. You can help expand it by clicking Sprite-monaco-pencil.png Edit on the section title.
Icon-edit-22x22.png
Note: This is a generic section stub. You can help expand it by clicking Sprite-monaco-pencil.png Edit on the section title.
Icon-edit-22x22.png
Note: This is a generic section stub. You can help expand it by clicking Sprite-monaco-pencil.png Edit on the section title.

Template
Icon-edit-22x22.png
Note: This is a generic section stub. You can help expand it by clicking Sprite-monaco-pencil.png Edit on the section title.