Documentation: Difference between revisions

From SL Pro Wrestling Wiki
/>Wumbolo
m bypassed redirect
/>Dinoguy1000-fduser
rv - this is not your pet wiki
Line 1: Line 1:
<!--    -*- mode:MediawikiNG; tab-width:8; indent-tabs-mode:tab; -*-
<div class="template-documentation" style="clear: both; border: 1px solid black; margin: 1em;"><!--
NOTE:
--><div class="color1" style="padding: 1em; margin: 0;"><!--
    PLEASE keep the indentations intact !
     -->'''Template documentation''' <!--
    The above emacs Modeline will preset most intelligent editors
     --><span style="font-size: 85%;"><!--
with correct setting. If your editor doesn't understand
      -->(for the above template, sometimes hidden or invisible)<!--
'mode:MediawikiNG;' then use 'mode:PHP;'
    --></span> <!--
    Please keep this and oter HTML-comment it does not negatively impact
    -->{{#if: {{{content|}}}
any of the functioning of the template but improves readability
      |
that is crucial in maintainability by other editors.
      | <span id="doc_editlinks" class="editsection plainlinks" style="font-size: 85%; float:right;"><!--
 
        -->{{#ifexist: {{#if: {{{1|}}}
TODO:
                        | {{{1}}}
     I used SublimeText with tab-size set to 4 then just
                        | {{FULLPAGENAME}}/doc
before saving to wiki i did "Convert Indentation to Spaces"
                        }}
then changed tab-size set to 8 and did "Convert Indentation to Tabs".
            | &#91;[[{{#if: {{{1|}}}
     After those 2 steps i commited to wiki.
                    | {{{1}}}
    This is needed so people using the editor on wiki will not see
                    | {{FULLPAGENAME}}/doc
unaligned code and try to correct it unnecessarily.
                    }}|view]]<!--
    When you use SublimeText also you can reverse the steps before editing
          -->&#93; <!--
to make life easier :)
          -->[[{{fullurl:{{#if: {{{1|}}}
--><div
                          | {{{1}}}
class="template-documentation"
                          | {{FULLPAGENAME}}/doc
style="clear:both; border:1px solid black; margin:1em;"
                          }}
><div
                | action=edit
    class="color1"
                }} edit]] <!--
    style="padding:1em; margin:0;"
          -->[[{{fullurl:{{#if: {{{1|}}}
    ><b>Template documentation</b> <!--
                          | {{{1}}}
--><span
                          | {{FULLPAGENAME}}/doc
style="font-size:85%;"
                          }}
>(for the above template, sometimes partially or fully invisible)<!--
                | action=history
--></span><!--
                }} history]] <!--
-->{{#if:
          -->[[{{fullurl:{{FULLPAGENAME}}
{{{content|}}}
                | action=purge
    |
                }} refresh]]
    |   <span
            | [[{{fullurl:{{#if: {{{1|}}}
    id="doc_editlinks"
                          | {{{1}}}
    class="editsection plainlinks"
                          | {{FULLPAGENAME}}/doc
    style="font-size:75%; float:right;"
                          }}
    >{{#ifexist:
                | action=edit&preload=Template:Documentation/preload
{{{1|{{FULLPAGENAME}}/doc}}}
                }} create]]
    |   &#91;[[{{{1|{{FULLPAGENAME}}/doc}}}|view]]&#93; <!--
            }}<!--
    -->&#91;[{{fullurl:   {{{1|{{FULLPAGENAME}}/doc}}}
      --></span>
      | action=edit
      }}<!--
      }} edit]&#93; <!--
--></div><!--
    -->&#91;[{{fullurl:   {{{1|{{FULLPAGENAME}}/doc}}}
--><div style="padding: 1em; padding-bottom: 0; margin: 0;">
      | action=history
{{#if: {{{content|}}}
      }} history]&#93; <!--
| {{{content}}}
    -->&#91;[{{fullurl:   {{FULLPAGENAME}}
| {{#ifexist: {{#if: {{{1|}}}
      | action=purge
              | {{{1}}}
      }} refresh]&#93;
              | {{FULLPAGENAME}}/doc
    |   &#91;[{{fullurl:    {{{1|{{FULLPAGENAME}}/doc}}}
              }}
      | action=edit&preload=Template:Documentation/preload
  | {{tocright}}
      }} create]&#93;
{{{{#ifeq: {{NAMESPACE}} | {{ns:Template}}
    }}<!--
  |
    --></span>
  | :{{NAMESPACE:{{#if: {{{1|}}}
    }}<!--
                | {{{1}}}
    --></div><!--
                | {{FULLPAGENAME}}
    --><div
                }}
    style="padding:1em; padding-bottom:0; margin:0;"
    }}:
    >{{#if:
  }}{{
{{{content|}}}
  #if: {{{1|}}}
    |   {{{content}}}
  | {{PAGENAME:{{{1}}} }}
    |   {{#ifexist:
  | {{PAGENAME}}/doc
    {{{1|{{FULLPAGENAME}}/doc}}}
  }}
|   {{tocright}}<!--
}}
-->{{:{{{1|{{FULLPAGENAME}}/doc}}} }}
  | :<strong class="error">This template doesn't have any documentation yet!</strong> <!--
|   :<!--
    -->Help out by [{{fullurl:{{#if: {{{1|}}}
--><strong
                              | {{{1}}}
class="error"
                              | {{FULLPAGENAME}}/doc
>This template doesn't have any documentation yet!<!--
                              }}
--></strong> <!--
                    | action=edit&preload=Template:Documentation/preload
-->Help out by [{{fullurl: {{{1|{{FULLPAGENAME}}/doc}}}
                    }} writing some]. <!--
| action=edit&preload=Template:Documentation/preload
    -->{{#ifeq: {{NAMESPACE}} | {{ns:10}}
}} writing some]. <!--
      | There may also be documentation on [[w:c:templates:{{#if: {{{1|}}}
-->{{#ifeq:
                                                            | {{{1}}}
{{NAMESPACE}} | {{ns:Template}}
                                                            | {{FULLPAGENAME}}/doc
    |   There may also be documentation on <!--
                                                            }}|Wikia Templates]] which can be copied.
-->[[w:c:templates:{{{1|{{FULLPAGENAME}}/doc}}}|Wikia Templates]] <!--
      }}{{
-->which can be copied.
      #ifeq: {{FULLPAGENAME}} | {{ns:Template}}:Documentation/preload
    }}{{#ifeq:
      |
{{FULLPAGENAME}} | {{ns:Template}}:Documentation/preload
      | [[Category:Templates without documentation]]
    |
      }}
    |  [[Category:Templates without documentation]]
  }}
    }}
}}<!--
}}
--></div><!--
    }}<!--
--><div class="color1" style="clear: both; padding: 0.5em; margin: 0; font-size: 85%; text-align: right;"><!--
    --></div><!--
    -->{{#if: {{{content|}}}
    --><div
      | '''[{{fullurl:{{FULLPAGENAME}}
    class="color1"
            | action=edit
    style="clear:both; padding:0.5em; margin:0; font-size:85%; text-align:right;"
            }} Edit this page]''' to change the above text. ('''[[Template:Documentation|What is this?]]''')
    >{{#if:
      | {{#ifexist: {{#if: {{{1|}}}
{{{content|}}}
                    | {{{1}}}
    |  <b><!--
                    | {{FULLPAGENAME}}/doc
-->[{{fullurl: {{FULLPAGENAME}}
                    }}
    | action=edit
        | The above text is '''[[m:Transclusion|<span class="color1">transcluded</span>]]''' <!--
    }} Edit this page]<!--
          -->from '''[[{{#if: {{{1|}}}
    --></b> to change the above text. <!--
                        | {{{1}}}
    -->(<!--
                        | {{FULLPAGENAME}}/doc
--><b><!--
                        }}]]'''; <!--
    -->[[Template:Documentation|What is this?]]<!--
          -->you can '''[{{fullurl:{{#if: {{{1|}}}
--></b><!--
                                    | {{{1}}}
    -->)
                                    | {{FULLPAGENAME}}/doc
    |  {{#ifexist:
                                    }}
    {{{1|{{FULLPAGENAME}}/doc}}}
                          | action=edit
|  The above text is <!--
                          }} change it]''' <!--
    --><b><!--
          -->or '''[{{fullurl:{{#if: {{{1|}}}
-->[[m:Help:Transclusion|<span
                              | {{{1}}}
class="color1"
                              | {{FULLPAGENAME}}/doc
>transcluded<!--
                              }}
--></span>]]<!--
                    | action=history
    --></b> <!--
                    }} view its history]'''. <!--
-->from <b><!--
          -->('''[[Template:Documentation|How does this work?]]''')
-->[[{{{1|{{FULLPAGENAME}}/doc}}}]]<!--
        | This template currently doesn't have any documentation; <!--
      --></b>; <!--
          -->you can '''[{{fullurl:{{#if: {{{1|}}}
-->you can <b><!--
                                    | {{{1}}}
    -->[{{fullurl: {{{1|{{FULLPAGENAME}}/doc}}}
                                    | {{FULLPAGENAME}}/doc
| action=edit
                                    }}
}} change it]<!--
                          | action=edit&preload=Template:Documentation/preload
--></b> <!--
                          }} create it]''' <!--
-->or <b><!--
          -->if you know how the template is used. <!--
      -->[{{fullurl:   {{{1|{{FULLPAGENAME}}/doc}}}
          -->('''[[Template:Documentation|What is this?]]''')
  | action=history
        }}
  }} view its history]<!--
      }}<br />If you're done making changes, <!--
    --></b>. <!--
        -->please '''[{{fullurl:{{FULLPAGENAME}}
-->(<!--
                      | action=purge
    --><b><!--
                      }} refresh the text]'''. <!--
-->[[Template:Documentation|How does this work?]]<!--
        -->('''[[Help:Purge|Why?]]''')<br /><!--
    --></b><!--
        -->You can experiment in this template's <!--
-->)
            -->{{#ifexist: {{#if: {{{sandbox|}}}
|   This template currently doesn't have any documentation; <!--
                          | {{{sandbox}}}
-->you can <b><!--
                          | {{FULLPAGENAME}}/sandbox
    -->[{{fullurl: {{{1|{{FULLPAGENAME}}/doc}}}
                          }}
| action=edit&preload=Template:Documentation/preload
              | '''[[{{#if: {{{sandbox|}}}
}} create it]<!--
                      | {{{sandbox}}}
--></b> <!--
                      | {{FULLPAGENAME}}/sandbox
-->if you know how the template is used. <!--
                      }}|sandbox]]''' <!--
-->(<!--
                -->('''[{{fullurl:{{#if: {{{sandbox|}}}
    --><b><!--
                                  | {{{sandbox}}}
-->[[Template:Documentation|What is this?]]<!--
                                  | {{FULLPAGENAME}}/sandbox
    --></b><!--
                                  }}
-->)
                        | action=edit
}}
                        }} edit]''' <!--
    }}<br/><!--
                -->&#124; <!--
-->If you're done making changes, please <!--
                -->'''[{{fullurl:Special:ComparePages
    --><b><!--
                        | page1={{FULLPAGENAMEE}}&page2={{urlencode:{{#if: {{{sandbox|}}}
-->[{{fullurl: {{FULLPAGENAME}}
                                                                    | {{{sandbox}}}
    | action=purge
                                                                    | {{FULLPAGENAME}}/sandbox
    }} refresh the text]<!--
                                                                    }}
    --></b>. <!--
                                                        }}
    -->(<!--
                        }} diff]'''<!--
--><b><!--
                -->)
    -->[[mw:Manual:Purge|Why?]]<!--
              | sandbox ('''[{{fullurl:{{#if: {{{sandbox|}}}
--></b><!--
                                        | {{{sandbox}}}
    -->)<br/><!--
                                        | {{FULLPAGENAME}}/sandbox
-->You can experiment in this template's <!--
                                        }}
    -->{{#ifexist:
                              | action=edit&preload=Template:Documentation/preload-sandbox
    {{{sandbox|{{FULLPAGENAME}}/sandbox}}}
                              }} create]''' <!--
|   <b><!--
                -->&#124; <!--
    -->[[{{{sandbox|{{FULLPAGENAME}}/sandbox}}}|sandbox]]<!--
                -->'''[{{fullurl:{{#if: {{{sandbox|}}}
--></b> <!--
                                  | {{{sandbox}}}
-->(<!--
                                  | {{FULLPAGENAME}}/sandbox
    --><b><!--
                                  }}
-->[{{fullurl: {{{sandbox|{{FULLPAGENAME}}/sandbox}}}
                        | action=edit&preload={{FULLPAGENAMEE}}&summary={{urlencode:Create sandbox version of [[{{FULLPAGENAME}}]]}}
    | action=edit
                        }} mirror]''' <!--
    }} edit]<!--
                -->)
    --></b> <!--
              }} <!--
    -->&#124; <!--
            -->and {{#ifexist: {{#if: {{{testcases|}}}
    --><b><!--
                              | {{{testcases}}}
-->[{{fullurl: Special:ComparePages
                              | {{FULLPAGENAME}}/testcases
    | page1={{FULLPAGENAMEE}}&page2={{urlencode:
                              }}
    {{{sandbox|{{FULLPAGENAME}}/sandbox}}}
                  | '''[[{{#if: {{{testcases|}}}
}}
                          | {{{testcases}}}
    }} diff]<!--
                          | {{FULLPAGENAME}}/testcases
    --></b><!--
                          }}|testcases]]''' <!--
-->)
                    -->('''[{{fullurl:{{#if: {{{testcases|}}}
|   sandbox <!--
                                      | {{{testcases}}}
-->(<!--
                                      | {{FULLPAGENAME}}/testcases
    --><b><!--
                                      }}
-->[{{fullurl:  {{{sandbox|{{FULLPAGENAME}}/sandbox}}}
                            | action=edit
    | action=edit&preload=Template:Documentation/preload-sandbox
                            }} edit]''')
    }} create]<!--
                  | testcases ('''[{{fullurl:{{#if: {{{testcases|}}}
    --></b> <!--
                                              | {{{testcases}}}
    -->&#124; <!--
                                              | {{FULLPAGENAME}}/testcases
    --><b><!--
                                              }}
-->[{{fullurl: {{{sandbox|{{FULLPAGENAME}}/sandbox}}}
                                    | action=edit&preload=Template:Documentation/preload-testcases
    | action=edit&preload={{FULLPAGENAMEE}}&summary={{urlencode:
                                    }} create]''')
    Create sandbox version of [[{{FULLPAGENAME}}]]
                  }} <!--
}}
            -->pages.<!--
    }} mirror]<!--
            -->{{#if: {{{content|}}}
    --></b><!--
              |
-->)
              | <br />Please add '''[[Help:Categories|categories]]''' and '''[[Help:Interwiki link|interwikis]]''' to <!--
}} <!--
                -->{{#ifexist: {{#if: {{{1|}}}
    -->and <!--
                                | {{{1}}}
    -->{{#ifexist:
                                | {{FULLPAGENAME}}/doc
    {{{testcases|{{FULLPAGENAME}}/testcases}}}
                                }}
|   <b><!--
                    | '''[[{{#if: {{{1|}}}
    -->[[{{{testcases|{{FULLPAGENAME}}/testcases}}}|testcases]]<!--
                          | {{{1}}}
--></b> <!--
                          | {{FULLPAGENAME}}/doc
-->(<!--
                          }}]]'''
    --><b><!--
                    | '''[{{fullurl:{{#if: {{{1|}}}
-->[{{fullurl: {{{testcases|{{FULLPAGENAME}}/testcases}}}
                                    | {{{1}}}
    | action=edit
                                    | {{FULLPAGENAME}}/doc
    }} edit]<!--
                                    }}
    --></b><!--
                          | action=edit&preload=Template:Documentation/preload
-->)
                          }} {{#if: {{{1|}}}
|   testcases <!--
                            | {{{1}}}
-->(<!--
                            | {{FULLPAGENAME}}/doc
    --><b><!--
                            }}]'''
-->[{{fullurl: {{{testcases|{{FULLPAGENAME}}/testcases}}}
                    }}.
    | action=edit&preload=Template:Documentation/preload-testcases
              }} <!--
    }} create]<!--
            -->('''[[Special:PrefixIndex/{{FULLPAGENAME}}/|View all subpages of this page]]'''.)<!--
    --></b><!--
--></div>
-->)
</div>
}} <!--
    -->pages.<br/><!--
-->{{#if:
{{{content|}}}
    |
    |   Please add <b><!--
    -->[[Help:Categories|categories]]<!--
--></b> <!--
    -->and <b><!--
    -->[[Help:Interwiki link|interwikis]]<!--
--></b> <!--
    -->to <b><!--
    -->{{#ifexist:
    {{{1|{{FULLPAGENAME}}/doc}}}
      |   [[{{{1|{{FULLPAGENAME}}/doc}}}]]
      |    [{{fullurl: {{{1|{{FULLPAGENAME}}/doc}}}
    | action=edit&preload=Template:Documentation/preload
    }} {{{1|{{FULLPAGENAME}}/doc}}}]
}}<!--
--></b>.
    }} <!--
-->(<!--
    --><b><!--
-->[[Special:PrefixIndex/{{FULLPAGENAME}}/|View all subpages of this page]]<!--
    --></b>.<!--
-->)<!--
    --></div><!--
--></div>

Revision as of 11:39, 27 June 2016

Template documentation (for the above template, sometimes hidden or invisible) {{#if:
      |
      | {{#ifexist: {{#if: 
                       | {{{1}}}
                       | Documentation/doc
                       }}
           | [[[{{#if: 
                    | {{{1}}}
                    | Documentation/doc
                    }}|view]]] [[{{fullurl:{{#if: 
                         | {{{1}}}
                         | Documentation/doc
                         }}
               | action=edit
               }} edit]] [[{{fullurl:{{#if: 
                         | {{{1}}}
                         | Documentation/doc
                         }}
               | action=history
               }} history]] [refresh]
           | [[{{fullurl:{{#if: 
                         | {{{1}}}
                         | Documentation/doc
                         }}
               | action=edit&preload=Template:Documentation/preload
               }} create]]
           }}
}}

{{#if: | {{{content}}} | {{#ifexist: {{#if:

             | {{{1}}}
             | Documentation/doc
             }}
 | Template:Tocright

{{{{#ifeq: | Template

 |
 | ::
 }}{{
 #if: 
 | 
 | Documentation/doc
 }}

}}

 | :This template doesn't have any documentation yet! Help out by [{{fullurl:{{#if: 
                             | {{{1}}}
                             | 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.
      }}{{
      #ifeq: Documentation | Template:Documentation/preload
      |
      | 
      }}
 }}
}}
{{#if:
      | Edit this page to change the above text. (What is this?)
      | {{#ifexist: {{#if: 
                    | {{{1}}}
                    | Documentation/doc
                    }}
        | The above text is transcluded from [[{{#if: 
                       | {{{1}}}
                       | Documentation/doc
                       }}]]; you can [{{fullurl:{{#if: 
                                   | {{{1}}}
                                   | Documentation/doc
                                   }}
                         | action=edit
                         }} change it] or [{{fullurl:{{#if: 
                              | {{{1}}}
                              | Documentation/doc
                              }}
                    | action=history
                    }} view its history]. (How does this work?)
        | This template currently doesn't have any documentation; you can [{{fullurl:{{#if: 
                                   | {{{1}}}
                                   | Documentation/doc
                                   }}
                         | action=edit&preload=Template:Documentation/preload
                         }} create it] if you know how the template is used. (What is this?)
        }}
      }}
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's {{#ifexist: {{#if: | {{{sandbox}}} | Documentation/sandbox }} | [[{{#if: | {{{sandbox}}} | Documentation/sandbox }}|sandbox]] ([{{fullurl:{{#if: | {{{sandbox}}} | Documentation/sandbox }} | action=edit }} edit] | diff) | sandbox ([{{fullurl:{{#if: | {{{sandbox}}} | Documentation/sandbox }} | action=edit&preload=Template:Documentation/preload-sandbox }} create] | [{{fullurl:{{#if: | {{{sandbox}}} | Documentation/sandbox }} | action=edit&preload=Documentation&summary=Create+sandbox+version+of+%5B%5BDocumentation%5D%5D }} mirror] ) }} and {{#ifexist: {{#if: | {{{testcases}}} | Documentation/testcases }} | [[{{#if: | {{{testcases}}} | Documentation/testcases }}|testcases]] ([{{fullurl:{{#if: | {{{testcases}}} | Documentation/testcases }} | action=edit }} edit]) | testcases ([{{fullurl:{{#if: | {{{testcases}}} | Documentation/testcases }} | action=edit&preload=Template:Documentation/preload-testcases }} create]) }} pages.{{#if: | |
Please add categories and interwikis to {{#ifexist: {{#if: | {{{1}}} | Documentation/doc }} | [[{{#if: | {{{1}}} | Documentation/doc }}]] | [{{fullurl:{{#if: | {{{1}}} | Documentation/doc }} | action=edit&preload=Template:Documentation/preload }} {{#if: | {{{1}}} | Documentation/doc }}] }}.
}} (View all subpages of this page.)