Sandbox: mudanças entre as edições

m
imported>Admin
 
(62 revisões intermediárias por 4 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]]


Para página de [[Manutenção]].{{Aviso|Esta página é de manutenção. Aqui se testa recursos e extensões deste wiki.}}
== 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 17: Linha 24:


<nowiki><nowiki> Desabilitar wiki markdown </nowiki></nowiki>
<nowiki><nowiki> Desabilitar wiki markdown </nowiki></nowiki>
=== 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):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
‎</syntaxhighlight>
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>
==== Bash ====
<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 22: Linha 103:
Lista de imagens: https://wiki.addressforall.org/doc/Especial:Lista_de_arquivos
Lista de imagens: https://wiki.addressforall.org/doc/Especial:Lista_de_arquivos


[[Arquivo:Image.png|esquerda|miniaturadaimagem|Legenda vai aqui.]]
[[Arquivo:Image01.png|borda|centro|miniaturadaimagem]]


<br style="clear: both;" clear="all" />
<br style="clear: both;" clear="all" />
[[Arquivo:Image01.png|esquerda|miniaturadaimagem|Legenda vai aqui.]]
<br style="clear: both;" clear="all" />
Imagemap:
<imagemap>
File:Image01.png|150px|alt=Alt text
default [[Página principal|Ir para a Página principal]]
</imagemap>


Galeria simples:
Galeria simples:


<gallery>
<gallery>
File:Image.png|Teste 1.
File:Image01.png|Teste 1.
File:Image.png|Teste 2.
File:Image01.png|Teste 2.
File:Image.png|Teste 3.
File:Image01.png|Teste 3.
</gallery>
</gallery>


Linha 39: Linha 131:


<gallery mode="packed-hover">
<gallery mode="packed-hover">
Image:Image.png|''Teste 1''
Image:Image01.png|''Teste 1''
Image:Image.png|''Teste 2''
Image:Image01.png|''Teste 2''
Image:Image.png|''Teste 3''
Image:Image01.png|''Teste 3''
</gallery>
</gallery>


<br style="clear: both;" clear="all" />
[https://www.mediawiki.org/wiki/Extension:PageImages PageImages]:
{{Por fazer|Escolher um exemplo.}}
(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 ==
Com marquee:
‎<youtube>https://www.youtube.com/watch?v=tt2nHK0oaSg</youtube>
Com #evt:
{{#evt:
service=youtube
|id=https://www.youtube.com/watch?v=eAORm-8b1Eg
|alignment=left
}}
<br style="clear: both;" clear="all" />


== Tabelas ==
== Tabelas ==
Linha 87: Linha 210:
Teste de gráficos com dados JSON.
Teste de gráficos com dados JSON.


'''Gráfico de barras:'''
'''Gráfico de barras'''
<graph>
<graph>
{
{
Linha 152: Linha 275:
</graph>
</graph>


<br>
<br>'''Gráfico de áreas'''
 
'''Gráfico de linhas:'''
<graph>
<graph>
{
{
Linha 215: Linha 336:
           "fillOpacity": {"value": 0.5}
           "fillOpacity": {"value": 0.5}
         }
         }
      }
    }
  ]
}
</graph>
'''Gráfico de linhas'''<graph>{
"version": 2,
"width": 400,
"height": 200,
"data": [
{
"name": "table",
"values": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 3
},
{
"x": 2,
"y": 2
},
{
"x": 3,
"y": 4
}
]
}
],
"scales": [
{
"name": "x",
"type": "linear",
"range": "width",
"zero": false,
"domain": {
"data": "table",
"field": "x"
}
},
{
"name": "y",
"type": "linear",
"range": "height",
"nice": true,
"domain": {
"data": "table",
"field": "y"
}
}
],
"axes": [
{
"type": "x",
"scale": "x"
},
{
"type": "y",
"scale": "y"
}
],
"marks": [
{
"type": "line",
"from": {
"data": "table"
},
"properties": {
"enter": {
"x": {
"scale": "x",
"field": "x"
},
"y": {
"scale": "y",
"field": "y"
},
"y2": {
"scale": "y",
"value": 0
},
"interpolate": {
"value": "monotone"
},
"stroke": {
"value": "steelblue"
},
"strokeWidth": {
"value": 3
}
}
}
}
]
}</graph>
'''Gráfico interativo'''
<graph mode=interactive>
{
  // We want to use Vega 2, and specify image size
  "version": 2, "width": 300, "height": 80,
  // Set padding to the same value on all sides
  "padding": 12,
  // By default the background is transparent
  "background": "#edf1f7",
  "marks": [
    {
      // Draw a horizontal line
      "name": "scrollLine",
      "type": "rule",
      "properties": {
        "enter": {
          "x": {"value": 0},
          "y": {"value": 40},
          "x2": {"value": 300},
          "stroke": {"value": "#000"},
          "strokeWidth": {"value": 2}
        }
      }
    },
    {
      // Draw a triangle shape with a hover effect
      // naming objects allows us to reference them later
      "name": "handle",
      "type": "path",
      "properties": {
        "enter": {
          "x": {"value": 200},
          "y": {"value": 40},
          // path syntax is the same as SVG's path tag
          "path": {"value": "m-5.5,-10l0,20l11.5,-10l-11.5,-10z"},
          "stroke": {"value": "#880"},
          "strokeWidth": {"value": 2.5}
        },
        "update": {"fill": {"value": "#fff"} },
        // Change fill color of the object on mouse hover
        "hover": {"fill": {"value": "#f00"} }
       }
       }
     }
     }
Linha 223: Linha 486:
=== Não funcionando ===
=== Não funcionando ===


Os gráficos abaixo não funcionam.
Os gráficos não funcionam: PageViews, PageHistory, rect, stackedarea, pie, map etc. Ver exemplos na [[mediawikiwiki:Extension:Graph|documentação]].


Falta implementar a Predefinição (usar isto https://www.mediawiki.org/wiki/Extension:Scribunto - ver se já está instalado):
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).


{{Graph:Chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y
== Esquemas ==
|type=rect|x=Item 1, Item 2, Item 3, Item 4, Item 5, Item 6, Item 7, Item 8|y=10,12,6,14,2,10,7,9}}
Da extensão [[mediawikiwiki:Extension:Mermaid|Mermaid]].


{{Graph:Chart|width=100|height=100|type=pie|legend=Legenda
{{Por fazer|Instalar a extensão Mermaid.}}
|x=Item A,Item B,Item C,Item D,Item E,Item F,Item G,Item H,Item I|y1=100,200,150,300,100,100,150,50,200
|y2=7,8,9,8,8,9,10,9,5|showValues=}}


{{Graph:Chart|width=400|height=100|xAxisTitle=X|yAxisTitle=Y
'''Exemplo 1:'''
|legend=Legend|type=stackedarea|x=1,2,3,4,5,6|y1=10,12,6,14,2,10
{{#mermaid:sequenceDiagram
  |y2=2,4,6,8,13,11|interpolate=monotone|colors=seagreen,orchid}}
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 244: Linha 535:


Ver: https://en.wikipedia.org/wiki/Wikipedia:Maps_for_Wikipedia. Possui exemplos de mapas interativos e do OSM.
Ver: https://en.wikipedia.org/wiki/Wikipedia:Maps_for_Wikipedia. Possui exemplos de mapas interativos e do OSM.
=== Coordenadas ===
Extensão [https://www.mediawiki.org/wiki/Extension:GeoData GeoData]. Permite que artigos especifiquem suas coordenadas geográficas e publiquem essas coordenadas por meio da API HTTP.
<nowiki>{{#coordinates:primary|40.775114|-73.968802|type:landmark_region:US-NY|name=Loeb Central Park Boathouse}}</nowiki>
{{#coordinates:primary|40.775114|-73.968802|type:landmark_region:US-NY|name=Loeb Central Park Boathouse}}
=== Kartographer ===
Teste da extensão [https://www.mediawiki.org/wiki/Extension:Kartographer Kartographer].
Usando mapframe :
<mapframe text="San Francisco museums" width="350" height="350" zoom="13" longitude="-122.3988" latitude="37.8013" align="left"/>
<br style="clear: both;" clear="all" />


== PDF ==
== PDF ==
Linha 257: Linha 563:


[[Arquivo:2014-15 Wikimedia Foundation Plan.pdf|page=1|200px|esquerda|Wikimedia Foundation Plan.]]
[[Arquivo:2014-15 Wikimedia Foundation Plan.pdf|page=1|200px|esquerda|Wikimedia Foundation Plan.]]
<br style="clear: both;" clear="all" />
== Misc ==
'''Input field:'''
<inputbox>
type=create
break=no
</inputbox>
'''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:
The Sun is pretty big.<ref>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–25.</ref> The Moon, however, is not so big.<ref>R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44–46.</ref>
... então segue-se as notas ou referências com a marquee <nowiki><references /></nowiki> ...
<references />
---
[[Categoria:Manutenção]]
[[Categoria:Manutenção]]
2 391

edições