• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Box portal skeleton/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Box portal skeleton
This is the template sandbox page for Template:Box portal skeleton (diff).
Template documentation[view] [edit] [history] [purge]
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here.
This template should always be substituted (i.e., use {{subst:Box portal skeleton}}).

Contents

  • 1 Usage
    • 1.1 Steps
    • 1.2 Customization and editing
      • 1.2.1 Adding a section (box)
    • 1.3 Other methods of adding a section
      • 1.3.1 Example 1
      • 1.3.2 Example 2
      • 1.3.3 Editing Archive for random portal component section
      • 1.3.4 Randomized lists and elements in sections
      • 1.3.5 Changing colors
  • 2 See also

Usage

edit

Steps

edit

To create a new portal on the topic "Topic" using the {{box portal skeleton}} template follow these steps:

1. Create a new page using [[Portal:Topic]] as the title of the page (where "Topic" is the subject of your portal) and enter the following text
{{subst:box portal skeleton}}

Save. At this point you will have a page full of red links; this is correct.

2. Create header subpage, scroll to the bottom of the page and click the template link to the header
  • Save [[Portal:Topic/box-header]] with this text (check the Web colors article if you want the code for some other color):
{{Box-header | title={{{1}}}
|editpage={{{2}}} 
|border=#aaaaaa           <!-- This is the color of the borders around Box Sections -->
|titleforeground=white    <!-- This is the color of the Box Section Title Bar text -->
|titlebackground=#aaccff  <!-- This is the color of the Box Section Title Bar -->
|background=#f9f9ff       <!-- This is the color of the Box Section background -->
|foreground=black}}       <!-- This is the color of the Box Section text -->
3. Return to your portal page Portal:Topic and begin editing (general instructions on editing a portal are below). Basically follow the red links to create sub-pages that will fill the boxes.
4. Place a link to your portal at the top of the appropriate article (of the same name) by placing a {{portal }} there. If the article has portals already listed or you have created more than one portal for the article, use {{ portal | Topic | portal 2 name| portal 3 name}}.

For an explanation of how and why this format works go here.

5. List your new portal in the Directory of portals.
6. Announce your new portal on the community bulletin board.
At this point, you have created a Portal under construction. It is a framework with a lot of red links where content should go. A fair amount of work is still necessary to turn a skeleton portal into one ready for browsing.
7. Edit the portal text. (See Customisation and editing below for instructions.)
8. When the portal is complete and of good quality:
  • Recategorize the portal from Category:Portals under construction to an appropriate sub-category of Category:Portals (or often a sub-sub-category or deeper, as needed). (See Wikipedia:Portal/Categorizing for details.)
  • Add a link to the portal at Portal:Contents/Portals.

Customization and editing

edit

The box portal allows you to edit the portal without editing the main portal page. Simply follow the blue links to the sub pages and enter the information there. These sub-pages will be displayed on the main page.

Adding a section (box)

edit

If you wish to add a section (box) using the regular codes, go to your portal page and simply type in:

 {{/box-header| 1 | 2 }}
 {{   3   }}
 {{box-footer| 4 }}

where

  • "1" is the box title
  • "2" is the article to be linked to. This will appear right under the title bar. You may omit this parameter if you don't want an edit link to appear, but you must not omit the pipe, for example:
    • {{/box-header | Selected article | Portal:Computer and video games/Selected}}
    • {{/box-header | Selected article | }} (no edit link param, note pipe still in place)
  • "3" is again the article to be linked to (this will appear as a red link until first edited), for example:
    • {{/Featured}}
  • "4" is a link that you'd like to display at the bottom-right corner of the box. You may omit this parameter if you don't want an edit link to appear, but you must not omit the pipe, for example:
    • {{box-footer | [[Computer and video games|More about Computer and video games...]]}}
    • {{box-footer | }} (no bottom-right param, note pipe still in place)

Other methods of adding a section

edit

Other methods of adding a section are adding Template:Random portal component or Template:Random portal component with nominate. see their documentation .

Example 1
edit

The following code:

<div style="float:right; width:50%;">
{{/box-header|A random title|Portal:Test/Selected article}}
{{/Selected article}}
{{box-footer|[[Lorem ipsum|More about Lorem ipsum...]]}}
</div>

results in:

Portal:Test/box-header Portal:Test/Selected article

More about Lorem ipsum...


Example 2
edit

The following code:

<div style="float:right; width:50%;">
{{/box-header|A random title|}}
   The following text will appear in the [[box]]. This text can be placed on 
    the [[Wikipedia:Portal|portals]] main page and edited there. Or, 
    alternately placed on a sub-page of the portal, which is explained below.
{{box-footer|[[Lorem ipsum|More about Lorem ipsum...]]}}
</div>

Portal:Test/box-header The following text will appear in the box. This text can be placed on the portals main page and edited there. Or, alternately placed on a sub-page of the portal, which is explained below.

More about Lorem ipsum...

...will result in what is displayed to the immediate right. →

The exact same code, used at other portals, will create a box with the exact same content, but the colors may be completely different. This is because each portal has templates at:

  1. "Portal:insertname/box-header" (e.g. [1])

that add color information, and then pass all the work along to the box-header template, which composes everything into a standards-compliant and cross-browser box.

Editing Archive for random portal component section

edit

For a random portal component section, the random pages are stored as consecutive numbered subpages from 1 to a maximum number. To view all numbered subpages in the archive page, use Template:Numbered subpages. Just write in the archive page {{Numbered subpages}}.

Randomized lists and elements in sections

edit

See the random subpage template for a method to display a list of randomly selected items from a group of numbered subpages (e.g., Sustainable development). This template also can be used to randomly rotate items such as images within a section (e.g., the Philosophy of science introduction).

Changing colors

edit

The colors of the portal can be changed in the box-header subpage. A list of colors you can use is available at Web colors, List of colors, or Wikipedia talk:Colours.

See also

edit
This box:
  • view
  • talk
  • edit

Portal content templates

  • To display "selected content" on the portal main page
    • {{Transclude list item excerpts as random slideshow}}—transcludes excerpts from recognized content lists, which are populated by a bot.
    • {{Transclude random subpage}}—transcludes random portal subpage.
    • {{Random portal component}}—transcludes random portal subpage.
    • {{Random subpage}}—transcludes random portal subpages.
    • {{Portal pictures}}—transcludes a slideshow of pictures, utilizing a single-page gallery.
  • To organize "selected content" on subpages
    • {{Numbered subpages}}—outputs an automatic index, transcluding numbered subpages.
    • {{Portal subpage}}—outputs a box linking to and transcluding a single subpage.
    • {{Portal subpage inline}}—outputs an unordered list item linking to and transcluding a single subpage.

Main portal page formatting templates

  • {{Box-header}}
  • {{Box-header-plain}}
  • {{Box-header-round}}
  • {{Box-header-square}}
  • {{Box-header-watch}}
  • {{Box-footer}}

Templates that configure links

  • {{Portal}}
  • {{Portal bar}}
  • {{Portal-inline}}
  • {{Pbox}}
  • {{Portals}}
  • {{Portals browsebar}}
  • {{Related portals}}
  • {{Wikimedia for portals}}

Selected page templates, used on subpages of older portals

  • {{Selected article}}
  • {{Selected biography}}
  • {{Selected business}}
  • {{Selected DYK}}
  • {{Selected ingredient}}
  • {{Selected ___location}}
  • {{Selected picture}}
  • {{Selected product}}
  • {{Selected publication}}
  • {{Selected quote}}
  • {{Selected recipe}}
  • {{Selected X}}

Related templates

  • {{Project template list}}
  • v
  • t
  • e
Portal templates
Visual overview of template usage
Layout and formatting
  • {{Box portal skeleton}}
  • {{Box-header}}
    • color palettes
    • plain
    • round
    • square
    • watch
  • {{Box-header colour}}[1]
  • {{Box-footer}}
  • {{Flex columns}}
  • {{Plain navboxes}}
Content transclusion
  • {{Transclude lead excerpt}}[2]
  • {{Transclude linked excerpt}}[2]
  • {{Transclude list item excerpt}}[2]
  • {{Transclude random excerpt}}[2]
  • {{Transclude selected excerpt}}[2]
  • {{Excerpt}}
  • {{Transclude DYK}}[9]
  • {{Transclude selected current events}}[3]
  • {{Transclude selected recent additions}}[4]
Content slideshows
  • {{Random slideshow}}[5]
  • {{Transclude files as random slideshow}}[5]
  • {{Transclude excerpts as random slideshow}}[6]
  • {{Transclude linked excerpts as random slideshow}}[6]
  • {{Transclude list item excerpts as random slideshow}}[6]
Content randomisation
  • {{Random portal component}}[7]
  • {{Random quotation}}
  • {{Random subpage}}
General
  • {{Portals}}
  • {{Portals browsebar}}
  • {{Portal description}}
  • {{Portal information sidebar}}
  • {{Portal navbar no header2}}
  • {{Purge link portals}}
  • {{Wikimedia for portals}}
Linking templates
  • {{Portal}}[11]
  • {{Portal bar}}[12]
  • {{Portal-inline}}[13]
  • {{Pbox}}
  • {{Related portals2}}
Talk pages / Maintenance
  • {{Portal talk}}
  • {{Portal maintenance status}}[8]
  • {{Portal suggestions}}
  • {{Portal toolbox}}
  • {{WikiProject Portals}}[8]
Images
  • {{Portal dynamic image}}
  • {{Portal image banner}}[10]
  • {{Portal pictures}}[14]
  • {{Portal POTD}}
Modules
  • 1. Module:Box-header
  • 2. Module:Excerpt/portals
  • 3. Module:Selected current events
  • 4. Module:Selected recent additions
  • 5. Module:Random slideshow
  • 6. Module:Excerpt slideshow
  • 7. Module:Random portal component
  • 8. Module:Portal maintenance status
  • 9. Module:Transclude DYK
  • 10. Module:Portal image banner
  • 11. Module:Portal
  • 12. Module:Portal bar
  • 13. Module:Portal-inline
  • 14. Module:Portal pictures
Usage
  • Wikipedia:Portal
  • Wikipedia:WikiProject Portals
For more information, see: Category:Template-Class Portal pages and Category:Wikipedia Portal templates
The above documentation is transcluded from Template:Box portal skeleton/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Box_portal_skeleton/sandbox&oldid=1250458369"
Last edited on 10 October 2024, at 14:45

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 10 October 2024, at 14:45 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop