2 391
edições
Sem resumo de edição |
m (→Símbolos) |
||
(43 revisões intermediárias por 3 usuários não estão sendo mostradas) | |||
Linha 1: | Linha 1: | ||
Página de testes. | '''Página de testes''' de recursos e extensões deste wiki. O carregamento dos recursos desta página é uma prova de que as extensões estão devidamente instaladas. | ||
Para página de manutenção, ver [[Manutenção]]. | |||
Subpáginas: | |||
* [[Sandbox/Claiton]] | |||
== Título (2 =) == | == Título (2 =) == | ||
Linha 11: | Linha 16: | ||
====== Subtítulo 4 (6 =) ====== | ====== Subtítulo 4 (6 =) ====== | ||
== Formatação de textos == | |||
Pré-formatado (um espaço antes do parágrafo) | Pré-formatado (um espaço antes do parágrafo) | ||
<blockquote><nowiki><blockquote> Bloco de citação </blockquote></nowiki></blockquote> | <blockquote><nowiki><blockquote> Bloco de citação </blockquote></nowiki></blockquote> | ||
Linha 18: | Linha 25: | ||
<nowiki><nowiki> Desabilitar wiki markdown </nowiki></nowiki> | <nowiki><nowiki> Desabilitar wiki markdown </nowiki></nowiki> | ||
Bloco de código | === Bloco de código === | ||
Usando ''[https://www.mediawiki.org/wiki/Extension:SyntaxHighlight syntaxhighlight]'': | |||
==== Python ==== | |||
Simples: | |||
<syntaxhighlight lang="python"> | |||
a=1 | |||
print(a) | |||
</syntaxhighlight> | |||
Com contador de linhas: | |||
<syntaxhighlight lang="python" line> | |||
def quick_sort(arr): | |||
less = [] | |||
pivot_list = [] | |||
more = [] | |||
if len(arr) <= 1: | |||
return arr | |||
</syntaxhighlight> | |||
Com contador de linhas, iniciando no 55: | |||
<syntaxhighlight lang="python" line start="55> | |||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
Linha 31: | Linha 59: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="python" line> | Com contador de linhas, iniciando no 55, sendo realçadas linhas 1ª, 3ª, 6ª ao 8ª: | ||
<syntaxhighlight lang="python" line start="55" highlight="1,3,6-8"> | |||
def quick_sort(arr): | |||
less = [] | |||
pivot_list = [] | |||
more = [] | |||
if len(arr) <= 1: | |||
return arr | |||
else: | |||
pass | |||
</syntaxhighlight> | </syntaxhighlight> | ||
== Símbolos == | ==== Bash ==== | ||
Alfa: | |||
<math>\ | <syntaxhighlight lang="bash"> | ||
pandoc -f commonmark markdownfile.md -t mediawiki -o out.wiki | |||
pandoc -t mediawiki -f html SBIDE2022resumo1osmCodesMetodologia.html # = SPans e divs | |||
pandoc -f html -t markdown-raw_html-native_divs-native_spans SBIDE2022resumo1osmCodesMetodologia.html | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" line> | |||
# teste bash: | |||
pandoc -f commonmark markdownfile.md -t mediawiki -o out.wiki | |||
pandoc -t mediawiki -f html SBIDE2022resumo1osmCodesMetodologia.html # = SPans e divs | |||
pandoc -f html -t markdown-raw_html-native_divs-native_spans SBIDE2022resumo1osmCodesMetodologia.html | |||
</syntaxhighlight> | |||
== Símbolos 2 fórmulas == | |||
Alfa: <math>\alpha</math> | |||
Beta: <math>\beta</math> | |||
Gama: <math>\gamma</math> | |||
Phi ou Fi: <math>\phi</math> | |||
Pi ao quadrado: <math>\pi^2</math> | |||
Sigma índice 5 mais x: <math>\sigma_5 + x</math> | |||
== Imagens == | == Imagens == | ||
Linha 48: | Linha 107: | ||
<br style="clear: both;" clear="all" /> | <br style="clear: both;" clear="all" /> | ||
[[Arquivo: | [[Arquivo:Image01.png|esquerda|miniaturadaimagem|Legenda vai aqui.]] | ||
<br style="clear: both;" clear="all" /> | <br style="clear: both;" clear="all" /> | ||
Linha 62: | Linha 121: | ||
<gallery> | <gallery> | ||
File: | File:Image01.png|Teste 1. | ||
File: | File:Image01.png|Teste 2. | ||
File: | File:Image01.png|Teste 3. | ||
</gallery> | </gallery> | ||
Linha 72: | Linha 131: | ||
<gallery mode="packed-hover"> | <gallery mode="packed-hover"> | ||
Image: | Image:Image01.png|''Teste 1'' | ||
Image: | Image:Image01.png|''Teste 2'' | ||
Image: | Image:Image01.png|''Teste 3'' | ||
</gallery> | </gallery> | ||
<br style="clear: both;" clear="all" /> | <br style="clear: both;" clear="all" /> | ||
[https://www.mediawiki.org/wiki/Extension:PageImages PageImages]: | [https://www.mediawiki.org/wiki/Extension:PageImages PageImages]: | ||
{{Por fazer|Escolher um exemplo.}} | |||
(sem exemplo, confirmar) | (sem exemplo, confirmar) | ||
SVG: | |||
{{Por fazer|Está com falha para renderizar textos. Ver https://github.com/AddressForAll/wiki-backup/issues/5.}} | |||
[[File:Reverse proxy h2g2bob.svg|thumb|nenhum]] | |||
== Vídeos == | == Vídeos == | ||
Linha 368: | Linha 436: | ||
] | ] | ||
}</graph> | }</graph> | ||
'''Gráfico interativo''' | '''Gráfico interativo''' | ||
Linha 416: | Linha 483: | ||
} | } | ||
</graph> | </graph> | ||
=== Não funcionando === | === Não funcionando === | ||
Os gráficos | Os gráficos não funcionam: PageViews, PageHistory, rect, stackedarea, pie, map etc. Ver exemplos na [[mediawikiwiki:Extension:Graph|documentação]]. | ||
Por ora, este tipos de gráficos não são necessários e são recursos cosméticos. Caso sejam num futuro, implementaremos as predefinições requeridas (usa [[mediawikiwiki:Extension:Scribunto|Scribunto]] e Lua). | |||
== Esquemas == | |||
Da extensão [[mediawikiwiki:Extension:Mermaid|Mermaid]]. | |||
{{ | {{Por fazer|Instalar a extensão Mermaid.}} | ||
{{ | '''Exemplo 1:''' | ||
{{#mermaid:sequenceDiagram | |||
participant Alice | |||
participant Bob | |||
Alice->John: Hello John, how are you? | |||
loop Healthcheck | |||
John->John: Fight against hypochondria | |||
end | |||
Note right of John: Rational thoughts <br/>prevail... | |||
John-->Alice: Great! | |||
John->Bob: How about you? | |||
Bob-->John: Jolly good! | |||
}} | |||
{{ | '''Exemplo 2''' adaptado de um vindo do GitHub: | ||
{{#mermaid:classDiagram | |||
Jurisdiction *-- "0..1" Jurisdiction_geom | |||
Donated_PackTpl "0..1" --> Jurisdiction: has scope | |||
Donated_PackTpl "*" --> Donor: has | |||
Donor "0..1" ..> Jurisdiction: has agg scope | |||
{ | class Jurisdiction { osm_id bigint } | ||
class Jurisdiction_geom { osm_id bigint } | |||
class Donor { | |||
id integer | |||
scope_osm_id bigint | |||
} | |||
class Donated_PackTpl { | |||
{ | id integer | ||
scope_osm_id bigint | |||
donor_id integer | |||
} | |||
{ | }} | ||
{ | |||
== Mapas == | == Mapas == | ||
Linha 505: | Linha 568: | ||
== Misc == | == Misc == | ||
Input field: | '''Input field:''' | ||
<inputbox> | <inputbox> | ||
type=create | type=create | ||
Linha 512: | Linha 574: | ||
</inputbox> | </inputbox> | ||
== Referências == | |||
'''Links para Wikipedia:''' | |||
[[Wikipedia:Main Page|Página principal (en)]] | |||
[[Wikipedia:pt:Página principal|Página principal (pt)]] | |||
'''Referência-padrão:''' | |||
{{Ref|KraAlm2020a}} | |||
==Referências== | |||
Texto: | Texto: | ||
edições