Predefinição:Random box-header subpage
![]() | Esta predefinição emprega sintaxe possivelmente complexa.
Por favor, não tente alterar algo a menos que esteja certo de que compreende a sintaxe de predefinições e esteja preparado para reparar danos colaterais se os resultados forem inesperados. Antes de realizar qualquer modificação significativa, sempre considere primeiro testá-la na Predefinição de testes (ou ainda em sua página de testes). |
The template functions similarly to {{random portal component}}, but is instead made part of the box header template for the portal. Thus all sections of the portal will be configured to randomly display content from the various Portal:Foo/Selected bar sub-pages. The negative side of this is that all sub-pages will be configured to use the same parameters, thus if there are more images than articles, it will not display the whole image set or it will show redlinks in place of content.
Uso
[editar código-fonte]This template can be placed at a portal's ..box-header/ subpage in order to transclude a numbered subpage, e.g., of Portal:Box-header, that is randomly selected between the "start"-numbered subpage and the "end"-numbered subpage as follows:
{{<..box-header>/<randomly selected number between "start" and "end">}}
The required set of parameters is as follows:
{{Random box-header subpage|1={{{1}}}|2={{{2}}}}}
This allows the box title and edit link to be passed on to the applicable box-header templates.
Optional parameters include the following:
{{Random box-header subpage|1={{{1}}}|2={{{2}}} |page=<page name> |start=<number> |end=<number> |seed=<number> |watch=<Y> }}
Parâmetros
[editar código-fonte]- 1: (required as is) The box name as specified on the portal page.
- 2: (required as is) The edit link as specified on the portal page.
- page: (optional) The name of the page to be displayed (without the subpage number, e.g., Portal:Foo/box-header/). The default is Portal:Box-header/.
- start: (optional) The starting subpage number. Must be a positive integer. The default is 1.
- end: (optional) The ending subpage number. Must be a positive integer. The default is 42.
- seed: (optional) The default seed is 2 and can be set to any other integer value (used to generate distinct values on the same page). Prime numbers work best, such as 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, and 113.
- watch: (optional) Any value will call the use of Portal:Box-header-watch. The default is Portal:Box-header. Note. The called subpage must include the associated parameter, such as at Portal:Box-header/1 and its related subpages.
Application examples
[editar código-fonte]{{Random box-header subpage|1={{{1}}}|2={{{2}}}}} {{Random box-header subpage|1={{{1}}}|2={{{2}}} |page=Portal:Foo/box-header/ |start=1 |end=3 |seed=2 |watch=Y }}
Ver também
[editar código-fonte]Principal portal criação de predefinições
- {{Caixa esqueleto portal}} - usadas para criar página principal de portal
- {{Random portal component}} - utilizada na página principal de portal para exibir artigos aleatoriamente a partir do subpáginas do portal
- {{Random portal component with nominate}} - utilizados no portal página principal para mostrar aleatoriamente artigos subpáginas do portal, acrescentando a possibilidade de nomear outros artigos Destacado foo.
- {{Random subpágina}} - utilizados na página principal do portal para exibir aleatoriamente subpáginas de artigos do portal. Esta predefinição é melhor usada para criar aleatoriamente povoadas Você sabia... seções da página principal do portal que se destina a incluir múltiplos fatos Você sabia ....
- {{Subpáginas numeradas}} - usada para criar links de artigos sobre sub-páginas do portal com 50 links.
- {{25 Subpáginas numeradas}} - Como acima, mas com 25 ligações.
- {{75 Subpáginas numeradas}} - Como acima, mas com 75 ligações.
- {{100 Subpáginas numeradas}} - Como acima, mas com 100 ligações.
- {{Random box-header subpage}}
Predefinições de formatação da página principal do portal
|
|
Predefinições que configuram hiperligações
- {{Portais/navegação}} com ícones
- {{Conteúdo-cabeçalho}}
- {{Portais1}} deverá ser movida para Portais assim que o título for desocupado
Estas predefinições são utilizadas para formatar os artigos sobre as sub-páginas