Template:Infobox/CatText: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
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 class="ib-standard ib-padding ib-border-top"><table style="width:100%;"><tr><td class="ib-padding-short" style="width:50%; font-weight: bold;">{{{category}}}</td><td class="ib-padding-short">{{{text}}}</td></tr></table></p></includeonly><noinclude>
==Usage==
==Usage==
<pre>{{Infobox/CatText|category=<cat>|text=<text>}}</pre>
<pre>{{Infobox/CatText|category=<cat>|text=<text>}}</pre>
Line 9: Line 9:
===Sub-Page===
===Sub-Page===
The ''Infobox/CatText'' template should be used in a /Infobox sub-page. See [[Template:Infobox]] for more information.
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.
''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.



Latest revision as of 14:22, 11 May 2018

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.