Documentation: Difference between revisions

From SL Pro Wrestling Wiki
/>Dinoguy1000-fduser
when the /doc page doesn't exist, also make the "Visit Template:Foo/doc to edit this text!" link use the preload
m 303 revisions imported
 
(264 intermediate revisions by 26 users not shown)
Line 1: Line 1:
<div style="clear: both; border: 1px solid black; margin: 1em; margin-top: 3em;">
<includeonly>{| class="article-table plainlinks" style="width:100%;" role="complementary"
  <div style="background: #ddd; color: #111; padding: 1em; margin: 0em;">'''Template documentation''' <span style="font-size: 85%;">(for the above template, sometimes hidden or invisible)</span></div>
|- style="font-size:18px;"
  <div style="padding: 1em; padding-bottom: 0em; margin: 0em;">{{
! style="padding:0px;" | <div style="width:100%; padding:3px 0px; text-align:center;" class="color1">Template documentation</div>
    #ifexist: {{{1|{{FULLPAGENAME}}/doc}}}
|-
    | {{tocright}}{{{{#ifeq: {{NAMESPACE}} | {{ns:Template}} |
| ''Note: portions of the template sample may not be visible without values provided.''
                    | :{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}:
|-
                    }}{{ #if: {{{1|}}} | {{PAGENAME:{{{1}}}}} | {{PAGENAME}}/doc}} }}
| View or edit [[{{{1|Template:{{PAGENAMEE}}/doc}}}|this documentation]]. ([[Template:Documentation|About template documentation]])
    | :<strong class="error">This template currently doesn't have any documentation!</strong> Help out by [{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} writing some]. {{#ifeq:{{NAMESPACE}}|{{ns:10}}|There may also be documentation on [[w:c:templates:{{FULLPAGENAME}}/doc|Wikia Templates]] which can be copied.}}[[Category:Templates without documentation]]
|-
  }}
| Editors can experiment in this template's [{{fullurl:{{FULLPAGENAMEE}}/sandbox|action=edit}} sandbox] and [{{fullurl:{{FULLPAGENAMEE}}/testcases}} test case] pages.
  </div>
|}
  <div style="clear: both; background: #ddd; color: #111; padding: 0.5em; margin: 0em; font-size: 85%; text-align: right;">Visit {{ #ifexist: {{{1|{{FULLPAGENAME}}/doc}}} | [[{{{1|{{FULLPAGENAME}}/doc}}}]] | [{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} {{{1|{{FULLPAGENAME}}/doc}}}] }} to edit this text! ([[Template:Documentation|How does this work]]?) ([{{fullurl:{{FULLPAGENAME}}|action=purge}} Refresh] this text - [[Help:Purge|why?]])</div>
<div style="margin:0 1em;">
</div>
{{{{{1|{{PAGENAME}}/doc}}}}}</div></includeonly><noinclude>{{Documentation}}[[Category:Documentation templates]]</noinclude>

Latest revision as of 08:12, 2 August 2024