Difference between revisions of "Template:Company"

From Archiveteam
Jump to navigation Jump to search
(noinclude)
(I could probably use the navbox template instead of the subst:PAGENAME hack, but I don't want to rewrite the whole thing.)
Line 2: Line 2:
 
This is a navigation box template that can be used to indicate which websites belong to the same company.
 
This is a navigation box template that can be used to indicate which websites belong to the same company.
  
Do not include ''this'' template, as it doesn't have parameters (and it shouldn't, as you don't want to enter them every time you use the template). It is intended to be replicated on an own page (preferably a subpage under Template:Company with the company name being its title), and then include ''that'' template with no paramteres. E.g.: <pre>{{Template:Company/Port Kft.}}</pre>
+
Do not include ''this'' template, as it doesn't have parameters (and it shouldn't, as you don't want to enter them every time you use the template). It is intended to be replicated on an own page (preferably a subpage under Template:Company with the company name being its title), and then include ''that'' template with no paramteres. E.g.: <pre>{{Template:Company/Indamedia}}</pre>
  
Please note that it should be included ''before'' the "Navigation box" template.
+
'''Spaces should be avoided in the page name''', otherwise you'll need to set the link for "Go to template page" manually.
 +
 
 +
Please note that this navbox should be included ''before'' the "Navigation box" (''Archive Team'') template.
  
 
It looks like this:
 
It looks like this:
Line 13: Line 15:
 
| align=center width=200px style="background: #ddddff;" | [[Website 1]] {{·}} [[Website 2]] {{·}} [[Website 3]]
 
| align=center width=200px style="background: #ddddff;" | [[Website 1]] {{·}} [[Website 2]] {{·}} [[Website 3]]
 
|-
 
|-
| colspan=2 | <p class="plainlinks" style="text-align:center; font-size:70%">Template actions: [http://archiveteam.org/index.php?title=Template:Hungarian_websites view] {{·}} [http://archiveteam.org/index.php?title=Template_talk:Hungarian_websites&action=edit&redlink=1 talk] {{·}} [http://archiveteam.org/index.php?title=Template:Hungarian_websites&action=edit edit]</p>
+
| colspan=2 | <p class="plainlinks" style="text-align:center; font-size:70%"> [http://archiveteam.org/index.php?title=Template:Company Go to template page]</p>
 
|}
 
|}
  
Line 23: Line 25:
 
| align=center width=200px style="background: #ddddff;" | [[Website 1]] {{·}} [[Website 2]] {{·}} [[Website 3]]
 
| align=center width=200px style="background: #ddddff;" | [[Website 1]] {{·}} [[Website 2]] {{·}} [[Website 3]]
 
|-
 
|-
| colspan=2 | <p class="plainlinks" style="text-align:center; font-size:70%">Template actions: [http://archiveteam.org/index.php?title=Template:Hungarian_websites view] {{·}} [http://archiveteam.org/index.php?title=Template_talk:Hungarian_websites&action=edit&redlink=1 talk] {{·}} [http://archiveteam.org/index.php?title=Template:Hungarian_websites&action=edit edit]</p>
+
| colspan=2 | <p class="plainlinks" style="text-align:center; font-size:70%"> [http://archiveteam.org/index.php?title=Template:{{subst:PAGENAME}} Go to template page]</p>
 
|}
 
|}
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Revision as of 19:33, 11 October 2020

This is a navigation box template that can be used to indicate which websites belong to the same company.

Do not include this template, as it doesn't have parameters (and it shouldn't, as you don't want to enter them every time you use the template). It is intended to be replicated on an own page (preferably a subpage under Template:Company with the company name being its title), and then include that template with no paramteres. E.g.:

{{Template:Company/Indamedia}}

Spaces should be avoided in the page name, otherwise you'll need to set the link for "Go to template page" manually.

Please note that this navbox should be included before the "Navigation box" (Archive Team) template.

It looks like this:

Websites operated by Company Name
Website 1  · Website 2  · Website 3

And here's the code for the above result:

{| style="border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; font-size: 100%; width:100%"
| align=center style="background: #ccccff;" | '''Websites operated by ''Company Name'''''
|-
| align=center width=200px style="background: #ddddff;" | [[Website 1]] {{·}} [[Website 2]] {{·}} [[Website 3]]
|-
| colspan=2 | <p class="plainlinks" style="text-align:center; font-size:70%"> [http://archiveteam.org/index.php?title=Template:{{subst:PAGENAME}} Go to template page]</p>
|}
<noinclude>[[Category:Templates]]</noinclude>

It's not collapsible, otherwise it would look crappy. Ideally it's not that big that it needs to be collapsed.