Documentation: Difference between revisions

From SL Pro Wrestling Wiki
/>Dinoguy1000-fduser
I never have understood why the top needs such a wide margin
/>Dinoguy1000-fduser
copy over some tweaks and fixes from w:c:carnivores:Template:Documentation
Line 3: Line 3:
   <div style="padding: 1em; padding-bottom: 0em; margin: 0em;">{{
   <div style="padding: 1em; padding-bottom: 0em; margin: 0em;">{{
     #if: {{{content|}}}
     #if: {{{content|}}}
     | {{{content}}}
     | <nowiki/>
{{{content}}}
     | {{
     | {{
       #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}
       #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}
Line 10: Line 11:
         || :{{NAMESPACE:{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}} }}}}:
         || :{{NAMESPACE:{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}} }}}}:
       }}{{ #if: {{{1|}}} | {{PAGENAME:{{{1}}}}} | {{PAGENAME}}/doc}} }}
       }}{{ #if: {{{1|}}} | {{PAGENAME:{{{1}}}}} | {{PAGENAME}}/doc}} }}
       | :<strong class="error">This template currently doesn't have any documentation!</strong> Help out by [{{fullurl:{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}|action=edit&preload=Template:Documentation/preload}} writing some]. {{
       | :<strong class="error">This template currently doesn't have any documentation!</strong> Help out by [{{fullurl:{{ #if: {{{1|}}} | {{ urlencode: {{{1}}} }} | {{FULLPAGENAMEE}}/doc }}|action=edit&preload=Template:Documentation/preload}} writing some]. {{
         #ifeq: {{NAMESPACE}} | {{ns:10}}
         #ifeq: {{NAMESPACE}} | {{ns:10}}
         | There may also be documentation on [[w:c:templates:{{FULLPAGENAME}}/doc|Wikia Templates]] which can be copied.
         | There may also be documentation on [[w:c:templates:{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}|Wikia Templates]] which can be copied.
       }}[[Category:Templates without documentation]]
       }}[[Category:Templates without documentation|{{PAGENAME}}]]
     }}
     }}
   }}
   }}
   </div>
   </div>
   <div style="clear: both; background: #ddd; color: #111; padding: 0.5em; margin: 0em; font-size: 85%; text-align: right;">Visit {{
   <div style="clear: both; background: #ddd; color: #111; padding: 0.5em; margin: 0em; font-size: 85%; text-align: right;">{{
    #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}
    #if: {{{content|}}}
    | [[{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}]]
    | [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} Edit this page]
    | [{{fullurl:{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}|action=edit&preload=Template:Documentation/preload}} {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}]
    | Visit {{
   }} to edit this text! ([[Template:Documentation|How does this work]]?)<br />Done editing it? [{{fullurl:{{FULLPAGENAME}}|action=purge}} Refresh] this page! ([[Help:Purge|Why?]])</div>
      #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}
      | [[{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}]]
      | [{{fullurl:{{ #if: {{{1|}}} | {{ urlencode: {{{1}}} }} | {{FULLPAGENAMEE}}/doc }}|action=edit&preload=Template:Documentation/preload}} {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}]
    }}
   }} to change this text! ([[Template:Documentation|How does this work]]?)<br />Done making changes? [{{fullurl:{{FULLPAGENAME}}|action=purge}} Refresh] this text! ([[Help:Purge|Why?]])</div>
</div>
</div>

Revision as of 18:07, 25 March 2012

Template documentation (for the above template, sometimes hidden or invisible)
{{
   #if: 
   | 

{{{content}}}

   | {{
     #ifexist: {{ #if:  | {{{1}}} | Documentation/doc }}
     | Template:Tocright{{{{
       #ifeq:  | Template
       || ::
     }}{{ #if:  |  | Documentation/doc}} }}
     | :This template currently doesn't have any documentation! Help out by [{{fullurl:{{ #if:  | %7B%7B%7B1%7D%7D%7D | Documentation/doc }}|action=edit&preload=Template:Documentation/preload}} writing some]. {{
       #ifeq:  | Template
       | There may also be documentation on [[w:c:templates:{{ #if:  | {{{1}}} | Documentation/doc }}|Wikia Templates]] which can be copied.
     }}
   }}
 }}
{{
   #if: 
   | Edit this page
   | Visit {{
     #ifexist: {{ #if:  | {{{1}}} | Documentation/doc }}
     | [[{{ #if:  | {{{1}}} | Documentation/doc }}]]
     | [{{fullurl:{{ #if:  | %7B%7B%7B1%7D%7D%7D | Documentation/doc }}|action=edit&preload=Template:Documentation/preload}} {{ #if:  | {{{1}}} | Documentation/doc }}]
   }}
}} to change this text! (How does this work?)
Done making changes? Refresh this text! (Why?)