Template:Infobox/CatText: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><p style="margin: -0.5em 0px 0px 0px; padding: 0px 5px 2.5px 5px; border-top: 1px solid rgb(183,143,81); font-size: 88%;"><table style="width:100%;"><tr><td style="width:50%; font-weight: bold; padding: 0px 5px 0px 5px;">{{{category}}}</td><td style="padding: 0px 5px 0px 0px;">{{{text}}}</td></tr></table></p></includeonly><noinclude>
<includeonly><p style="margin: -0.5em 0px 0px 0px; padding: 0px 5px 2.5px 5px; border-top: 1px solid rgb(183,143,81); font-size: 88%;"><table style="width:100%;"><tr><td style="width:50%; font-weight: bold; padding: 0px 5px 0px 5px;">{{{category}}}</td><td style="padding: 0px 5px 0px 0px;">{{{text}}}</td></tr></table></p></includeonly><noinclude>
==Usage==
==Usage==
todo
<pre>{{Infobox/CatText|category=<cat>|text=<text>}}</pre>
<pre>{{Infobox/CatText|category=<cat>|text=<text>}}</pre>
*The code above can be pasted into your page.
*The code above can be pasted into your page.
===Base Page===
''<nowiki>{{Infobox}}</nowiki>'' should be added to the base page of the article.
===Sub-Page===
The ''Infobox/CatText'' template should be used in a /Infobox sub-page. See [[Template:Infobox]] for more information.
''Infobox/CatText'' Is intended to be used to create a category with a single item in the information box. It adds a horizontal line. Below that it adds bold text on the left and regular text on the right.
<span style="color:red;">'''IMPORTANT:'''</span> ''<nowiki>{{Infobox/Start}}</nowiki>'' should always be used in combination with ''<nowiki>{{Infobox/End}}</nowiki>''. Other Infobox templates should be placed between /Start and /End. Changing this order will result in a mess.
[[Category:Templates/Formatting]]
[[Category:Templates/Formatting]]
</noinclude>
</noinclude>

Revision as of 14:03, 21 December 2017

Usage

{{Infobox/CatText|category=<cat>|text=<text>}}
  • The code above can be pasted into your page.

Base Page

{{Infobox}} should be added to the base page of the article.

Sub-Page

The Infobox/CatText template should be used in a /Infobox sub-page. See Template:Infobox for more information. Infobox/CatText Is intended to be used to create a category with a single item in the information box. It adds a horizontal line. Below that it adds bold text on the left and regular text on the right.

IMPORTANT: {{Infobox/Start}} should always be used in combination with {{Infobox/End}}. Other Infobox templates should be placed between /Start and /End. Changing this order will result in a mess.