Difference between revisions of "Template:Documentation/start box"

From Open Food Facts wiki
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
Line 1: Line 1:
<!--
 
  Start of green doc box
 
--><div class="template-documentation" style="background-color:#ecfcf4; border:1px solid #aaa; padding:12px; clear:both;"><!--
 
  Add the heading at the top of the doc box:
 
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty-->
 
| <!--"heading=", do nothing-->
 
| <div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;"><span style="{{#if: {{{heading-style|}}}
 
  | {{{heading-style|}}}
 
  | {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}
 
    | font-weight: bold; font-size: 125%
 
    | font-size: 150%
 
    }}
 
  }}">{{#switch: {{{heading|¬}}}
 
  | ¬ = 
 
    <!--"heading" not defined in this or previous level-->
 
    {{#switch: {{SUBJECTSPACE}}
 
    | {{ns:Template}} = [[File:OOjs UI icon information-progressive.svg|20px|link=|alt={{Documentation/getText|icon alt}}]] {{Documentation/getText|template heading}}
 
    | {{ns:Module}} = [[File:OOjs UI icon information-progressive.svg|20px|link=|alt={{Documentation/getText|icon alt}}]] {{Documentation/getText|module heading}}
 
    | {{ns:File}} = {{Documentation/getText|file heading}}
 
    | #default = {{Documentation/getText|default heading}}
 
    }}
 
  | #default =
 
    <!--"heading" has data or is empty but defined-->
 
    {{{heading|}}}
 
  }}</span>{{
 
  #if: {{{content|}}}
 
  |
 
  | <!--Add the [view][edit][history][purge] or [create] links-->
 
    <span class="mw-editsection plainlinks" id="doc_editlinks">{{
 
    #if: {{{doc exist|}}}
 
    | &#91;[[{{{docpage|{{FULLPAGENAME}}/doc}}}|{{Documentation/getText|view}}]]&nbsp;'''·''' [[Special:EditPage/{{{docpage|{{FULLPAGENAME}}/doc}}}|{{Documentation/getText|edit}}]]&nbsp;'''·''' [[Special:PageHistory/{{{docpage|{{FULLPAGENAME}}/doc}}}|{{Documentation/getText|history}}]]&nbsp;'''·''' {{purge|{{Documentation/getText|purge}}}}&nbsp;&#93;
 
    | <!--/doc doesn't exist-->
 
      [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
 
        #if: {{{preload|}}}
 
        | {{urlencode:{{{preload}}}}}
 
        | {{#ifeq: {{SUBJECTSPACE}} | {{ns:File}}
 
          | Template:Documentation/preload-filespace
 
          | Template:Documentation/preload
 
          }} }} }} {{Documentation/getText|create}}]]
 
  
    }}<!--
 
 
      Add a link to the [/text] subpage for translation
 
 
    -->{{#ifexist:{{FULLPAGENAME}}/text|&nbsp;&#91;[[{{FULLPAGENAME}}/text|{{Documentation/getText|translate template}}]]&#93;}} <!--
 
    --></span>
 
  }}</div>
 
}}<noinclude><!-- close the div --></div><!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 

Revision as of 15:12, 11 April 2024