Documentation: Difference between revisions

From SL Pro Wrestling Wiki
/>Dinoguy1000-fduser
merge #ifexists
/>Dinoguy1000-fduser
simplify code - wikipedia:Template:Documentation automatically clears floating content, so there's no reason not to do so here; code spacing; no need for <includeonly>/<noinclude>
Line 1: Line 1:
<includeonly><div style="border: 1px solid black; margin: 1em; margin-top: 3em;"><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><div style="padding: 1em; padding-bottom: 0em; margin: 0em;">{{#ifexist: {{FULLPAGENAME}}/doc
<div style="clear: both; border: 1px solid black; margin: 1em; margin-top: 3em;">
|{{tocright}}
  <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>
{{{{PAGENAME}}/doc}}
  <div style="padding: 1em; padding-bottom: 0em; margin: 0em;">{{
|This template currently doesn't have any documentation! Help out by [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Documentation/preload}} writing some].[[Category:Templates without documentation]]}}
    #ifexist: {{FULLPAGENAME}}/doc
</div><br style="clear: both;"/><div style="background: #ddd; color: #111; padding: 0.5em; margin: 0em; font-size: 85%; text-align: right;">Visit [[{{FULLPAGENAME}}/doc]] to edit this text! ([[Template:Documentation|How does this work]]?) ([{{fullurl:{{FULLPAGENAME}}|action=purge}} Refresh] this text - [[Help:Purge|why?]])</div></div></includeonly><noinclude>
    | {{tocright}}{{{{PAGENAME}}/doc}}
{{Documentation}}</noinclude>
    | :''This template currently doesn't have any documentation!'' Help out by [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Documentation/preload}} writing some].[[Category:Templates without documentation]]
  }}
  </div>
  <div style="clear: both; background: #ddd; color: #111; padding: 0.5em; margin: 0em; font-size: 85%; text-align: right;">Visit [[{{FULLPAGENAME}}/doc]] to edit this text! ([[Template:Documentation|How does this work]]?) ([{{fullurl:{{FULLPAGENAME}}|action=purge}} Refresh] this text - [[Help:Purge|why?]])</div>
</div>

Revision as of 23:03, 12 August 2010

Template documentation (for the above template, sometimes hidden or invisible)
{{
   #ifexist: Documentation/doc
   | Template:TocrightTemplate:Documentation/doc
   | :This template currently doesn't have any documentation! Help out by writing some.
 }}
Visit Documentation/doc to edit this text! (How does this work?) (Refresh this text - why?)