Templates: Difference between revisions

From gm_construct 13 beta
Jump to navigation Jump to search
(Created page with "==Overview== Templates are wiki pages whose content can be embedded in other pages. They allow for easy translations and help maintain consistency among related documents. This page describes some templates for formatting text. == Templates == {| class="wikitable" |- ! Template !! Example syntax !! Example output |- ! <h5> Warning </h5> | <pre>{{warning}} Here is my warning 1.</pre> <pre>{{warning|Here is my warning 2.}}</pre> | {{warning}} Here...")
 
No edit summary
Line 1: Line 1:
==Overview==
==Overview==
Templates are wiki pages whose content can be embedded in other pages. They allow for easy translations and help maintain consistency among related documents. This page describes some templates for formatting text.
Templates are wiki pages whose content can be embedded in other pages. They allow for easy translations and help maintain consistency among related documents. This page describes some templates for formatting text.
Many gm13 templates are inspired by the official [https://www.mediawiki.org/wiki/Documentation/Style_guide/templates| Mediawiki] ones.


== Templates ==
== Templates ==
Line 10: Line 12:
|-
|-
! <h5> [[Template:Warning|Warning]] </h5>
! <h5> [[Template:Warning|Warning]] </h5>
| <pre>{{warning}} Here is my warning 1.</pre> <pre>{{warning|Here is my warning 2.}}</pre>  
| <pre>{{warning}} Here is my warning.</pre></pre>  
| {{warning}} Here is my warning 1. <br><br> {{warning|Here is my warning 2.}}
| {{warning|Here is my warning.}}
|-
|-
! <h5> [[Template:Note|Note]] </h5>
! <h5> [[Template:Note|Note]] </h5>

Revision as of 05:10, 10 July 2023

Overview

Templates are wiki pages whose content can be embedded in other pages. They allow for easy translations and help maintain consistency among related documents. This page describes some templates for formatting text.

Many gm13 templates are inspired by the official Mediawiki ones.

Templates

Template Example syntax Example output
Warning
{{warning}} Here is my warning.
OOjs UI icon notice-destructive.svg.png Here is my warning.
Note
{{note|Note 1}}
OOjs UI icon reference 20 ac6600.png Note 1
Tip
{{Tip|Here is my tip.}}
OOjs UI icon lightbulb-yellow.png Here is my tip.
Notice
{{Notice|Here is my notice.}}
40px-OOjs UI icon information-progressive.svg.png Here is my notice.
Fixme
{{Fixme}}
{{{icon-size}}} This documentation is considered incorrect and should not be used as a point of reference. It needs reviewing by someone who understands the subject matter and can fix any problems.
Historical
{{Historical}}
{{{icon-size}}} This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on any information on this page.
Outdated (Alias: Update)
{{Outdated}}
Alias: {{Update}}
{{{icon-size}}} This page is outdated. It was written for an older version of the content and may not apply to the most recent version. If you have checked or updated this page and found the content to be suitable, please remove this notice.
Draft
{{Draft}}
{{{icon-size}}} This page is currently a draft.

More information and discussion about changes to this draft may be on the discussion page.