Open main menu

Project: Gorgon Wiki β

Changes

Template:Documentation/preload

1,161 bytes added, 18:53, 10 May 2016
m
Sample output: Added overflow:auto;
;<includeonly><<noinclude/>includeonly><!-- Categories/interwikis for the template itself --><<noinclude/>/includeonly><<noinclude/>noinclude><!-- Categories/interwikis for this documentation itself -->[[Category:Template documentation|{{PAGENAME}}]]<<noinclude/>/noinclude></includeonly><dl>== <dt>Description</dt> ==:<dd>This template is used to do something.</dd>;== <dt>Dependencies:</dt> ==<!-- delete if N/A -->:<dd>* Uses (some CSS, JS, file, or other template).<!-- delete if N/A -->;*Uses for this documentation:**{{t|SPW}} = Wikia specific to link back to original.**{{t|t}} = To show clickable template mentions.**{{t|para}} = To show parameter usage.**{{t|-}} and {{t|Lorem ipsum}} = To format the output of the samples.</dd> == <dt>Syntax</dt> ==:<dd>Type {{t|{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|param1<!-- delete if N/A -->|namedparam&#61;<!-- delete if N/A -->|style=code}} somewhere.;</dd>===<dt>Parameters</dt>===<dd>*<i>Recommended | Required | Optional</i>: {{para|namedparameter}}*:Your explanation here.*:Default: {{para|namedparameter|<var>value</var>}}</dd>== <dt>Sample output</dt> ==<!-- Use one or the other layout versions below --><!-- /start: For a tabular sample output --><dd>
{| class="wikitable"
|+ Sample output
! Code !! Output
|-
| style="background-color:silver; overflow:auto;" |<syntaxhighlight lang="c" line="on"code>{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}</syntaxhighlight>:<code><nowiki>{{</nowiki>{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}<nowiki>|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}</nowiki></code> :gives...| style="background-color:silver; overflow:auto;" |
{{{{<includeonly>subst:</includeonly>#titleparts:{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|foo1<!-- delete if N/A -->|foo2=<!-- delete if N/A -->}}
|}
;See also</dd><!-- /end:For a tabular sample output --> <!-- delete if N/A start: For a vertical sample output --><dd><dl>===Sample:1===<dt style="font-family:monospace,Courier; font-weight:normal; border:2px solid teal; border-radius:1em; overflow:auto;"><nowiki>{{</nowiki>{{<includeonly>subst:</includeonly>#titleparts:* [[Template{{<includeonly>subst:</includeonly>PAGENAME}}|1}}<nowiki>|foo1<!-- Some other template delete if N/A -->]]|foo2=<!-- delete if N/A -->}}</nowiki></dt><dd>gives...</dd><dd style="border:2px solid teal; border-radius:1em; overflow:auto;">{{{{<includeonly>subst:</includeonly>#titleparts:* [[{{<includeonly>subst:</includeonly>PAGENAME}}|1}}|foo1<!-- Some other related page delete if N/A -->]]|foo2=<!-- delete if N/A -->}}<includeonly/dd> </dl><noinclude/dd>includeonly><!-- Categories/interwikis for the template itself end: For a vertical sample output -->[[Category:Shop Heroes Templates|{{PAGENAME}}]]== <dt>See also<noinclude/dt>==<!-- delete if N/includeonlyA --><dd>*{{t|<noinclude/!-- Some other template's name -->noinclude>}}<!-- Categoriesdelete if N/interwikis for this documentation itself A -->*[[Category:Template documentation|{{PAGENAME}}<!-- Some other related page -->]]<<noinclude!-- delete if N/A --></noincludedd> </includeonlydl>
1,071
edits