Template:Guide: Difference between revisions

Template page
m (Fixed typo)
(Added ability to disable Category)
Line 1: Line 1:
<includeonly>[[Category:Guide]]{{#if:{{{narrow|}}}|<templatestyles src=Guide/narrow.css />}}<templatestyles src=Truthtable/styles.css /></includeonly><noinclude>
<includeonly>{{#if:{{{nocategory|}}}|[[Category:Guide]]}} {{#if:{{{narrow|}}}|<templatestyles src=Guide/narrow.css />}}<templatestyles src=Truthtable/styles.css /></includeonly><noinclude>
==Usage==
==Usage==
Adds the current page to the [[:Category:guide|guide]] category.
Adds the current page to the [[:Category:guide|guide]] category.
Line 7: Line 7:
{{guide|
{{guide|
narrow = Set to 1, or any value, to reduce the paragraph width (Optional).
narrow = Set to 1, or any value, to reduce the paragraph width (Optional).
nocategory = Set to 1, or any value, to prevent the page from being included in the Guide Category
}}
}}
</pre>
</pre>

Revision as of 11:36, 22 November 2023

Usage

Adds the current page to the guide category.

  • Optionally narrows the the paragraph width.
{{guide|
narrow = Set to 1, or any value, to reduce the paragraph width (Optional).
nocategory = Set to 1, or any value, to prevent the page from being included in the Guide Category
}}

Normal example

{{guide}}

For a guide with default styling & width.

Narrow example

{{guide|narrow=1}}

For a guide with narrower paragraphs.