Editing Template:Dmbox/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{high-risk| 210,000+ }}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
Line 5: Line 6:
 
This is the {{tl|dmbox}} or '''disambiguation footer message box''' meta-template.
 
This is the {{tl|dmbox}} or '''disambiguation footer message box''' meta-template.
  
It is used to build disambiguation and [[Wikipedia:Disambiguation#Set index articles|set index article]] boxes, such as {{tl|Disambiguation}}.
+
It is used to build disambiguation and [[Wikipedia:Disambiguation#Set index articles|set index article]] boxes, such as {{tl|Disambiguation}} and {{tl|shipindex}}.  
  
 
This template works similarly to {{tl|ambox}} and mostly uses the same parameters. The main differences are that this box uses the disambiguation style and only has two "type" settings.
 
This template works similarly to {{tl|ambox}} and mostly uses the same parameters. The main differences are that this box uses the disambiguation style and only has two "type" settings.
Line 30: Line 31:
 
{{dmbox
 
{{dmbox
 
| type      = setindex
 
| type      = setindex
| image    = {{nowrap| [[Image:Shuttle.png|30px]] [[Image:DebugLog.png|30px]] }}
+
| image    = {{nowrap| [[Image:Schooner.svg|30px]] [[Image:List gray.svg|30px]] }}
 
| textstyle = color: red; font-weight: bold; font-style: normal;
 
| textstyle = color: red; font-weight: bold; font-style: normal;
 
| text      = The message body text.
 
| text      = The message body text.
Line 38: Line 39:
 
{{dmbox
 
{{dmbox
 
| type      = setindex
 
| type      = setindex
| image    = {{nowrap| [[Image:Shuttle.png|30px]] [[Image:DebugLog.png|30px]] }}
+
| image    = {{nowrap| [[Image:Schooner.svg|30px]] [[Image:List gray.svg|30px]] }}
 
| textstyle = color: red; font-weight: bold; font-style: normal;
 
| textstyle = color: red; font-weight: bold; font-style: normal;
 
| text      = The message body text.
 
| text      = The message body text.
Line 56: Line 57:
 
{{dmbox
 
{{dmbox
 
| type = setindex
 
| type = setindex
| imageright = [[Image:Shuttle.png|33px]]  
+
| imageright = [[Image:Schooner.svg|33px]]  
 
| text  = type = setindex <br> imageright = <nowiki>[[Image:Schooner.svg|33px]]</nowiki>
 
| text  = type = setindex <br> imageright = <nowiki>[[Image:Schooner.svg|33px]]</nowiki>
 
}}
 
}}
Line 62: Line 63:
 
{{dmbox
 
{{dmbox
 
| type = setindex
 
| type = setindex
| imageright = [[Image:Shuttle.png|33px]]
+
| imageright = [[Image:Schooner.svg|33px]]
 
| text  =  
 
| text  =  
 
This article includes a [[Wikipedia:WikiProject Ships/Guidelines#Index pages|list of ships]] with the same or similar names. If an [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|internal link]] for a specific ship referred you to this page, you may wish to change the link to point directly to the intended ship article, if one exists.
 
This article includes a [[Wikipedia:WikiProject Ships/Guidelines#Index pages|list of ships]] with the same or similar names. If an [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|internal link]] for a specific ship referred you to this page, you may wish to change the link to point directly to the intended ship article, if one exists.
Line 84: Line 85:
 
'''type'''
 
'''type'''
 
:If no '''type''' parameter is given the template defaults to type '''disambig'''.
 
:If no '''type''' parameter is given the template defaults to type '''disambig'''.
:'''disambig''' = Makes it so the <nowiki>{{tl|disambig editintro}}</nowiki> is displayed when editing a page with this template on. (Means that this template internally sets the CSS id "disambigbox". The id is used by the javascript in [[MediaWiki:Common.js]] to determine if a page is a disambiguation page or not.) And adds <nowiki>[[:Category:All disambiguation pages]]</nowiki> and <nowiki>[[:Category:All article disambiguation pages]]</nowiki>.
+
:'''disambig''' = Makes it so the {{tl|disambig editintro}} is displayed when editing a page with this template on. (Means that this template internally sets the CSS id "disambigbox". The id is used by the javascript in [[MediaWiki:Common.js]] to determine if a page is a disambiguation page or not.) And adds [[:Category:All disambiguation pages]] and [[:Category:All article disambiguation pages]].
  
:'''setindex''' = Does ''not'' trigger the <nowiki>{{tl|disambig editintro}}</nowiki> when editing a page. (Because this instead sets the CSS id "setindexbox".) And adds <nowiki>[[:Category:All set index articles]]</nowiki>.
+
:'''setindex''' = Does ''not'' trigger the {{tl|disambig editintro}} when editing a page. (Because this instead sets the CSS id "setindexbox".) And adds [[:Category:All set index articles]].
  
 
'''nocat'''
 
'''nocat'''
Line 139: Line 140:
  
  
Internally, this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[wikipedia:Help:ParserFunctions|parser functions]] and special characters in parameters.  
+
Internally, this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters.  
  
Since this template works almost exactly like {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their pages and related pages might also contain more details.
+
For more technical details see the [[Template talk:Dmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.
  
 
=== See also ===
 
=== See also ===
Line 148: Line 149:
 
* [[Wikipedia:Disambiguation]] – Also has a section explaining [[Wikipedia:Disambiguation#Set index articles|set index articles]].
 
* [[Wikipedia:Disambiguation]] – Also has a section explaining [[Wikipedia:Disambiguation#Set index articles|set index articles]].
 
* [[Wikipedia:WikiProject Disambiguation]]
 
* [[Wikipedia:WikiProject Disambiguation]]
 +
* [[MediaWiki:Disambiguationspage]] – Should list all disambiguation message boxes, so that some automatic tools can know what pages are disambiguation pages. Now also has a separate list with all set index message boxes, so some tools can know what pages are set index articles.
 +
 
* {{tl|Disambiguation}} – The generic disambiguation message box.
 
* {{tl|Disambiguation}} – The generic disambiguation message box.
 +
 +
<includeonly>[[en:Template:Dmbox]]</includeonly>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)